import{g as wl}from"./chunks/_commonjsHelpers.js";import{E as sr}from"./chunks/event-bus.js";var jn={exports:{}},fo;function Is(){return fo||(fo=1,function(a){(function(e,r){var t=r(e,e.document,Date);e.lazySizes=t,a.exports&&(a.exports=t)})(typeof window<"u"?window:{},function(r,t,i){var n,s;if(function(){var S,M={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};s=r.lazySizesConfig||r.lazysizesConfig||{};for(S in M)S in s||(s[S]=M[S])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:s,noSupport:!0};var o=t.documentElement,l=r.HTMLPictureElement,u="addEventListener",f="getAttribute",p=r[u].bind(r),h=r.setTimeout,c=r.requestAnimationFrame||h,g=r.requestIdleCallback,d=/^picture$/i,m=["load","error","lazyincluded","_lazyloaded"],w={},E=Array.prototype.forEach,A=function(S,M){return w[M]||(w[M]=new RegExp("(\\s|^)"+M+"(\\s|$)")),w[M].test(S[f]("class")||"")&&w[M]},y=function(S,M){A(S,M)||S.setAttribute("class",(S[f]("class")||"").trim()+" "+M)},C=function(S,M){var _;(_=A(S,M))&&S.setAttribute("class",(S[f]("class")||"").replace(_," "))},P=function(S,M,_){var U=_?u:"removeEventListener";_&&P(S,M),m.forEach(function(H){S[U](H,M)})},x=function(S,M,_,U,H){var q=t.createEvent("Event");return _||(_={}),_.instance=n,q.initEvent(M,!U,!H),q.detail=_,S.dispatchEvent(q),q},D=function(S,M){var _;!l&&(_=r.picturefill||s.pf)?(M&&M.src&&!S[f]("srcset")&&S.setAttribute("srcset",M.src),_({reevaluate:!0,elements:[S]})):M&&M.src&&(S.src=M.src)},v=function(S,M){return(getComputedStyle(S,null)||{})[M]},T=function(S,M,_){for(_=_||S.offsetWidth;_49?function(){g(q,{timeout:H}),H!==s.ricTimeout&&(H=s.ricTimeout)}:k(function(){h(q)},!0);return function(G){var J;(G=G===!0)&&(H=33),!M&&(M=!0,J=U-(i.now()-_),J<0&&(J=0),G||J<9?K():h(K,J))}},I=function(S){var M,_,U=99,H=function(){M=null,S()},q=function(){var K=i.now()-_;K0,Ee&&v(me,"overflow")!="visible"&&(ie=me.getBoundingClientRect(),Ee=ae>ie.left&&Jie.top-1&&G500&&o.clientWidth>500?500:370:s.expand,n._defEx=Oe,We=Oe*s.expFactor,qe=s.hFac,ye=null,ce2&&U>2&&!t.hidden?(ce=We,ze=0):U>1&&ze>1&&pe<6?ce=Oe:ce=le),it!==be&&(q=innerWidth+be*qe,K=innerHeight+be,Ze=be*-1,it=be),ie=Be[X].getBoundingClientRect(),(_e=ie.bottom)>=Ze&&(G=ie.top)<=K&&(ae=ie.right)>=Ze*qe&&(J=ie.left)<=q&&(_e||ae||J||G)&&(s.loadHidden||rt(Be[X]))&&(M&&pe<3&&!V&&(U<3||ze<4)||Ht(Be[X],be))){if(Qe(Be[X]),Ee=!0,pe>9)break}else!Ee&&M&&!me&&pe<4&&ze<4&&U>2&&(S[0]||s.preloadAfterLoad)&&(S[0]||!V&&(_e||ae||J||G||Be[X][f](s.sizesAttr)!="auto"))&&(me=S[0]||Be[X])}me&&!Ee&&Qe(me)}},ue=N(Xt),Vt=function(L){var X=L.target;if(X._lazyCache){delete X._lazyCache;return}b(L),y(X,s.loadedClass),C(X,s.loadingClass),P(X,dr),x(X,"lazyloaded")},hr=k(Vt),dr=function(L){hr({target:L.target})},Fe=function(L,X){var ie=L.getAttribute("data-load-mode")||s.iframeLoadMode;ie==0?L.contentWindow.location.replace(X):ie==1&&(L.src=X)},Zt=function(L){var X,ie=L[f](s.srcsetAttr);(X=s.customMedia[L[f]("data-media")||L[f]("media")])&&L.setAttribute("media",X),ie&&L.setAttribute("srcset",ie)},we=k(function(L,X,ie,me,Ee){var be,Ze,V,it,Oe,We;(Oe=x(L,"lazybeforeunveil",X)).defaultPrevented||(me&&(ie?y(L,s.autosizesClass):L.setAttribute("sizes",me)),Ze=L[f](s.srcsetAttr),be=L[f](s.srcAttr),Ee&&(V=L.parentNode,it=V&&d.test(V.nodeName||"")),We=X.firesLoad||"src"in L&&(Ze||be||it),Oe={target:L},y(L,s.loadingClass),We&&(clearTimeout(_),_=h(b,2500),P(L,dr,!0)),it&&E.call(V.getElementsByTagName("source"),Zt),Ze?L.setAttribute("srcset",Ze):be&&!it&&(Ke.test(L.nodeName)?Fe(L,be):L.src=be),Ee&&(Ze||it)&&D(L,{src:be})),L._lazyRace&&delete L._lazyRace,C(L,s.lazyClass),O(function(){var qe=L.complete&&L.naturalWidth>1;(!We||qe)&&(qe&&y(L,s.fastLoadedClass),Vt(Oe),L._lazyCache=!0,h(function(){"_lazyCache"in L&&delete L._lazyCache},9)),L.loading=="lazy"&&pe--},!0)}),Qe=function(L){if(!L._lazyRace){var X,ie=Qt.test(L.nodeName),me=ie&&(L[f](s.sizesAttr)||L[f]("sizes")),Ee=me=="auto";(Ee||!M)&&ie&&(L[f]("src")||L.srcset)&&!L.complete&&!A(L,s.errorClass)&&A(L,s.lazyClass)||(X=x(L,"lazyunveilread").detail,Ee&&F.updateElem(L,!0,L.offsetWidth),L._lazyRace=!0,pe++,we(L,X,Ee,me,ie))}},bt=I(function(){s.loadMode=3,ue()}),Bt=function(){s.loadMode==3&&(s.loadMode=2),bt()},Jt=function(){if(!M){if(i.now()-H<999){h(Jt,999);return}M=!0,s.loadMode=3,ue(),p("scroll",Bt,!0)}};return{_:function(){H=i.now(),n.elements=t.getElementsByClassName(s.lazyClass),S=t.getElementsByClassName(s.lazyClass+" "+s.preloadClass),p("scroll",ue,!0),p("resize",ue,!0),p("pageshow",function(L){if(L.persisted){var X=t.querySelectorAll("."+s.loadingClass);X.length&&X.forEach&&c(function(){X.forEach(function(ie){ie.complete&&Qe(ie)})})}}),r.MutationObserver?new MutationObserver(ue).observe(o,{childList:!0,subtree:!0,attributes:!0}):(o[u]("DOMNodeInserted",ue,!0),o[u]("DOMAttrModified",ue,!0),setInterval(ue,999)),p("hashchange",ue,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(L){t[u](L,ue,!0)}),/d$|^c/.test(t.readyState)?Jt():(p("load",Jt),t[u]("DOMContentLoaded",ue),h(Jt,2e4)),n.elements.length?(Xt(),O._lsFlush()):ue()},checkElems:ue,unveil:Qe,_aLSL:Bt}}(),F=function(){var S,M=k(function(q,K,G,J){var ae,_e,ye;if(q._lazysizesWidth=J,J+="px",q.setAttribute("sizes",J),d.test(K.nodeName||""))for(ae=K.getElementsByTagName("source"),_e=0,ye=ae.length;_e30&&(I+=1),N=36*I,k.push(N)}(n.widths));for(v in O)v in n||(n[v]=O[v])})();function A(v,T,O){var k,N,I,z,F,R=e.getComputedStyle(v);if(!O)N=v.parentNode,O={isPicture:!!(N&&u.test(N.nodeName||""))};else{F={};for(z in O)F[z]=O[z];O=F}I=function(S,M){var _=v.getAttribute("data-"+S);if(!_){var U=R.getPropertyValue("--ls-"+S);U&&(_=U.trim())}if(_){if(_=="true")_=!0;else if(_=="false")_=!1;else if(l.test(_))_=parseFloat(_);else if(typeof n[S]=="function")_=n[S](v,_);else if(c.test(_))try{_=JSON.parse(_)}catch{}O[S]=_}else S in n&&typeof n[S]!="function"&&!O[S]?O[S]=n[S]:M&&typeof n[S]=="function"&&(O[S]=n[S](v,_))};for(k in n)I(k);return T.replace(h,function(S,M){M in O||I(M,!0)}),O}function y(v,T){var O=[],k=function(N,I){return o[typeof T[I]]?T[I]:N};return O.srcset=[],T.absUrl&&(d.setAttribute("href",v),v=d.href),v=((T.prefix||"")+v+(T.postfix||"")).replace(h,k),T.widths.forEach(function(N){var I=T.widthmap[N]||N,z=T.aspectratio||T.ratio,F=!T.aspectratio&&n.traditionalRatio,R={u:v.replace(f,I).replace(p,z?Math.round(F?N*z:N/z):""),w:N};O.push(R),O.srcset.push(R.c=R.u+" "+N+"w")}),O}function C(v,T,O){var k=0,N=0,I=O;if(v){if(T.ratio==="container"){for(k=I.scrollWidth,N=I.scrollHeight;(!k||!N)&&I!==r;)I=I.parentNode,k=I.scrollWidth,N=I.scrollHeight;k&&N&&(T.ratio=T.traditionalRatio?N/k:k/N)}v=y(v,T),v.isPicture=T.isPicture,w&&O.nodeName.toUpperCase()=="IMG"?O.removeAttribute(i.srcsetAttr):O.setAttribute(i.srcsetAttr,v.srcset.join(", ")),Object.defineProperty(O,"_lazyrias",{value:v,writable:!0})}}function P(v,T){var O=A(v,T);return n.modifyOptions.call(v,{target:v,details:O,detail:O}),t.fire(v,"lazyriasmodifyoptions",O),O}function x(v){return v.getAttribute(v.getAttribute("data-srcattr")||n.srcAttr)||v.getAttribute(i.srcsetAttr)||v.getAttribute(i.srcAttr)||v.getAttribute("data-pfsrcset")||""}addEventListener("lazybeforesizes",function(v){if(v.detail.instance==t){var T,O,k,N,I,z,F,R,S,M,_,U,H,q;if(T=v.target,!(!v.detail.dataAttr||v.defaultPrevented||n.disabled||!((M=T.getAttribute(i.sizesAttr)||T.getAttribute("sizes"))&&g.test(M)))){if(O=x(T),k=P(T,O),U=f.test(k.prefix)||f.test(k.postfix),k.isPicture&&(I=T.parentNode))for(z=I.getElementsByTagName("source"),F=0,R=z.length;F=z.d){!M.cached&&(F=z[_-1])&&F.d>z.d-.13*Math.pow(z.d,2.2)&&(R=Math.pow(F.d-.6,1.6),F.cached&&(F.d+=.15*R),F.d+(M.d-z.d)*R>z.d&&(M=F));break}return M},O=function(z,F){var R;return!z._lazyrias&&t.pWS&&(R=t.pWS(z.getAttribute(i.srcsetAttr||""))).length&&(Object.defineProperty(z,"_lazyrias",{value:R,writable:!0}),F&&z.parentNode&&(R.isPicture=z.parentNode.nodeName.toUpperCase()=="PICTURE")),z._lazyrias},k=function(z){var F=e.devicePixelRatio||1,R=t.getX&&t.getX(z);return Math.min(R||F,2.4,F)},N=function(z,F){var R,S,M,_,U,H;if(U=z._lazyrias,U.isPicture&&e.matchMedia){for(S=0,R=z.parentNode.getElementsByTagName("source"),M=R.length;S1&&setTimeout(x,5e3)},v=function(){c.removeEventListener("load",v),c.removeEventListener("error",v),m&&t.rAF(function(){m&&t.aC(m,t.cfg.blurUpLoadedOriginalClass)}),t.fire(c,"blurUpLoaded"),d!="always"&&(!w||Date.now()-A<66)?D(!0):D()};P(),c.addEventListener("load",v),c.addEventListener("error",v),t.aC(c,t.cfg.blurUpLoadingClass);var T=function(O){C==O.target&&(t.aC(m||c,t.cfg.blurUpInviewClass),D(),C.removeEventListener("lazybeforeunveil",T))};C.getAttribute("data-expand")||C.setAttribute("data-expand",-1),C.addEventListener("lazybeforeunveil",T),t.aC(C,t.cfg.lazyClass)};e.addEventListener("lazybeforeunveil",function(h){var c=h.detail;if(!(c.instance!=t||!c.blurUp)){var g=h.target,d=g.parentNode;d.nodeName!="PICTURE"&&(d=null),p(d,g,f(d,g)||l,c.blurUp)}}),e.addEventListener("lazyunveilread",function(h){var c=h.detail;if(c.instance==t){var g=h.target,d=(getComputedStyle(g,null)||{fontFamily:""}).fontFamily.match(s);!d&&!g.getAttribute("data-lowsrc")||(c.blurUp=d&&d[1]||t.cfg.blurupMode||"always")}})})})(Sl);On.cfg.init=!1;On.cfg.rias=On.cfg.rias||{};On.init();function pr(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Qo(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}/*! * GSAP 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var zt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},vi={duration:.5,overwrite:!1,delay:0},Ns,ft,Te,Ut=1e8,ge=1/Ut,hs=Math.PI*2,Al=hs/4,kl=0,Zo=Math.sqrt,Pl=Math.cos,Ml=Math.sin,je=function(e){return typeof e=="string"},Me=function(e){return typeof e=="function"},br=function(e){return typeof e=="number"},Ws=function(e){return typeof e>"u"},cr=function(e){return typeof e=="object"},Tt=function(e){return e!==!1},Us=function(){return typeof window<"u"},un=function(e){return Me(e)||je(e)},Jo=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ct=Array.isArray,ds=/(?:-?\.?\d|\.)+/gi,ea=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ui=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Kn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ta=/[+-]=-?[.\d]+/,ra=/[^,'"\[\]\s]+/gi,Ol=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ae,ir,_s,Ys,Ft={},Dn={},ia,na=function(e){return(Dn=Qr(e,Ft))&&St},$s=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},Ki=function(e,r){return!r&&console.warn(e)},sa=function(e,r){return e&&(Ft[e]=r)&&Dn&&(Dn[e]=r)||Ft},Qi=function(){return 0},Dl={suppressEvents:!0,isStart:!0,kill:!1},Tn={suppressEvents:!0,kill:!1},Ll={suppressEvents:!0},qs={},kr=[],ps={},oa,Ot={},Qn={},co=30,wn=[],Hs="",Xs=function(e){var r=e[0],t,i;if(cr(r)||Me(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=wn.length;i--&&!wn[i].targetTest(r););t=wn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ma(e[i],t)))||e.splice(i,1);return e},$r=function(e){return e._gsap||Xs(Yt(e))[0]._gsap},aa=function(e,r,t){return(t=e[r])&&Me(t)?e[r]():Ws(t)&&e.getAttribute&&e.getAttribute(r)||t},wt=function(e,r){return(e=e.split(",")).forEach(r)||e},Le=function(e){return Math.round(e*1e5)/1e5||0},Ge=function(e){return Math.round(e*1e7)/1e7||0},hi=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},Rl=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++io;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=s,r.parent=r._dp=e,r},qn=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,s=r._next;n?n._next=s:e[t]===r&&(e[t]=s),s?s._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},Or=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},qr=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Bl=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},gs=function(e,r,t,i){return e._startAt&&(ft?e._startAt.revert(Tn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},Il=function a(e){return!e||e._ts&&a(e.parent)},_o=function(e){return e._repeat?yi(e._tTime,e=e.duration()+e._rDelay)*e:0},yi=function(e,r){var t=Math.floor(e/=r);return e&&t===e?t-1:t},zn=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Hn=function(e){return e._end=Ge(e._start+(e._tDur/Math.abs(e._ts||e._rts||ge)||0))},Xn=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=Ge(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),Hn(e),t._dirty||qr(t,e)),e},ha=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._startge)&&r.render(t,!0)),qr(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-ge}},or=function(e,r,t,i){return r.parent&&Or(r),r._start=Ge((br(t)?t:t||e!==Ae?It(e,t,r):e._time)+r._delay),r._end=Ge(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),ca(e,r,"_first","_last",e._sort?"_start":0),ms(r)||(e._recent=r),i||ha(e,r),e._ts<0&&Xn(e,e._tTime),e},da=function(e,r){return(Ft.ScrollTrigger||$s("scrollTrigger",r))&&Ft.ScrollTrigger.create(r,e)},_a=function(e,r,t,i,n){if(Gs(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!ft&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&oa!==Dt.frame)return kr.push(e),e._lazy=[n,i],1},Nl=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},ms=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},Wl=function(e,r,t,i){var n=e.ratio,s=r<0||!r&&(!e._start&&Nl(e)&&!(!e._initted&&ms(e))||(e._ts<0||e._dp._ts<0)&&!ms(e))?0:1,o=e._rDelay,l=0,u,f,p;if(o&&e._repeat&&(l=on(0,e._tDur,r),f=yi(l,o),e._yoyo&&f&1&&(s=1-s),f!==yi(e._tTime,o)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||ft||i||e._zTime===ge||!r&&e._zTime){if(!e._initted&&_a(e,r,i,t,l))return;for(p=e._zTime,e._zTime=r||(t?ge:0),t||(t=r&&!p),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,u=e._pt;u;)u.r(s,u.d),u=u._next;r<0&&gs(e,r,t,!0),e._onUpdate&&!t&&Rt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&Rt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===s&&(s&&Or(e,1),!t&&!ft&&(Rt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},Ul=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start0&&!i&&Xn(e,e._tTime=e._tDur*o),e.parent&&Hn(e),t||qr(e.parent,e),e},po=function(e){return e instanceof mt?qr(e):bi(e,e._dur)},Yl={_start:0,endTime:Qi,totalDuration:Qi},It=function a(e,r,t){var i=e.labels,n=e._recent||Yl,s=e.duration()>=Ut?n.endTime(!1):e._dur,o,l,u;return je(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",o=r.indexOf("="),l==="<"||l===">"?(o>=0&&(r=r.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(o<0?n:t).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(l=parseFloat(r.charAt(o-1)+r.substr(o+1)),u&&t&&(l=l/100*(ct(t)?t[0]:t).totalDuration()),o>1?a(e,r.substr(0,o-1),t)+l:s+l)):r==null?s:+r},Ni=function(e,r,t){var i=br(r[1]),n=(i?2:1)+(e<2?0:1),s=r[n],o,l;if(i&&(s.duration=r[1]),s.parent=t,e){for(o=s,l=t;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=Tt(l.vars.inherit)&&l.parent;s.immediateRender=Tt(o.immediateRender),e<2?s.runBackwards=1:s.startAt=r[n-1]}return new Ne(r[0],s,r[n+1])},Rr=function(e,r){return e||e===0?r(e):r},on=function(e,r,t){return tr?r:t},ut=function(e,r){return!je(e)||!(r=Ol.exec(e))?"":r[1]},$l=function(e,r,t){return Rr(t,function(i){return on(e,r,i)})},vs=[].slice,pa=function(e,r){return e&&cr(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&cr(e[0]))&&!e.nodeType&&e!==ir},ql=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return je(i)&&!r||pa(i,1)?(n=t).push.apply(n,Yt(i)):t.push(i)})||t},Yt=function(e,r,t){return Te&&!r&&Te.selector?Te.selector(e):je(e)&&!t&&(_s||!xi())?vs.call((r||Ys).querySelectorAll(e),0):ct(e)?ql(e,t):pa(e)?vs.call(e,0):e?[e]:[]},ys=function(e){return e=Yt(e)[0]||Ki("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return Yt(r,t.querySelectorAll?t:t===e?Ki("Invalid scope")||Ys.createElement("div"):e)}},ga=function(e){return e.sort(function(){return .5-Math.random()})},ma=function(e){if(Me(e))return e;var r=cr(e)?e:{each:e},t=Hr(r.ease),i=r.from||0,n=parseFloat(r.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,u=r.axis,f=i,p=i;return je(i)?f=p={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(f=i[0],p=i[1]),function(h,c,g){var d=(g||r).length,m=s[d],w,E,A,y,C,P,x,D,v;if(!m){if(v=r.grid==="auto"?0:(r.grid||[1,Ut])[1],!v){for(x=-Ut;x<(x=g[v++].getBoundingClientRect().left)&&vx&&(x=C),Cd?d-1:u?u==="y"?d/v:v:Math.max(v,d/v))||0)*(i==="edges"?-1:1),m.b=d<0?n-d:n,m.u=ut(r.amount||r.each)||0,t=t&&d<0?Aa(t):t}return d=(m[h]-m.min)/m.max||0,Ge(m.b+(t?t(d):d)*m.v)+m.u}},bs=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=Ge(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(br(t)?0:ut(t))}},va=function(e,r){var t=ct(e),i,n;return!t&&cr(e)&&(i=t=e.radius||Ut,e.values?(e=Yt(e.values),(n=!br(e[0]))&&(i*=i)):e=bs(e.increment)),Rr(r,t?Me(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=Ut,f=0,p=e.length,h,c;p--;)n?(h=e[p].x-o,c=e[p].y-l,h=h*h+c*c):h=Math.abs(e[p]-o),hi?n-s:s)})},Zi=function(e){for(var r=0,t="",i,n,s,o;~(i=e.indexOf("random(",r));)s=e.indexOf(")",i),o=e.charAt(i+7)==="[",n=e.substr(i+7,s-i-7).match(o?ra:ds),t+=e.substr(r,i-r)+ya(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),r=s+1;return t+e.substr(r,e.length-r)},xa=function(e,r,t,i,n){var s=r-e,o=i-t;return Rr(n,function(l){return t+((l-e)/s*o||0)})},Kl=function a(e,r,t,i){var n=isNaN(e+r)?0:function(c){return(1-c)*e+c*r};if(!n){var s=je(e),o={},l,u,f,p,h;if(t===!0&&(i=1)&&(t=null),s)e={p:e},r={p:r};else if(ct(e)&&!ct(r)){for(f=[],p=e.length,h=p-2,u=1;u(o=Math.abs(o))&&(l=s,n=o);return l},Rt=function(e,r,t){var i=e.vars,n=i[r],s=Te,o=e._ctx,l,u,f;if(n)return l=i[r+"Params"],u=i.callbackScope||e,t&&kr.length&&Ln(),o&&(Te=o),f=l?n.apply(u,l):n.call(u),Te=s,f},Oi=function(e){return Or(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ft),e.progress()<1&&Rt(e,"onInterrupt"),e},fi,Ta=[],wa=function(e){if(e)if(e=!e.name&&e.default||e,Us()||e.headless){var r=e.name,t=Me(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:Qi,render:Qs,add:Vs,kill:hu,modifier:cu,rawVars:0},s={targetTest:0,get:0,getSetter:Ks,aliases:{},register:0};if(xi(),e!==i){if(Ot[r])return;qt(i,qt(Rn(e,n),s)),Qr(i.prototype,Qr(n,Rn(e,s))),Ot[i.prop=r]=i,e.targetTest&&(wn.push(i),qs[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}sa(r,i),e.register&&e.register(St,i,Et)}else Ta.push(e)},de=255,Di={aqua:[0,de,de],lime:[0,de,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,de],navy:[0,0,128],white:[de,de,de],olive:[128,128,0],yellow:[de,de,0],orange:[de,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[de,0,0],pink:[de,192,203],cyan:[0,de,de],transparent:[de,de,de,0]},Zn=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*de+.5|0},Ea=function(e,r,t){var i=e?br(e)?[e>>16,e>>8&de,e&de]:0:Di.black,n,s,o,l,u,f,p,h,c,g;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Di[e])i=Di[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+n+n+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&de,i&de,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&de,e&de]}else if(e.substr(0,3)==="hsl"){if(i=g=e.match(ds),!r)l=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=Zn(l+1/3,n,s),i[1]=Zn(l,n,s),i[2]=Zn(l-1/3,n,s);else if(~e.indexOf("="))return i=e.match(ea),t&&i.length<4&&(i[3]=1),i}else i=e.match(ds)||Di.transparent;i=i.map(Number)}return r&&!g&&(n=i[0]/de,s=i[1]/de,o=i[2]/de,p=Math.max(n,s,o),h=Math.min(n,s,o),f=(p+h)/2,p===h?l=u=0:(c=p-h,u=f>.5?c/(2-p-h):c/(p+h),l=p===n?(s-o)/c+(se||w<0)&&(t+=w-r),i+=w,C=i-t,A=C-s,(A>0||E)&&(P=++p.frame,h=C-p.time*1e3,p.time=C=C/1e3,s+=A+(A>=n?4:n-A),y=1),E||(l=u(d)),y)for(c=0;c=w&&c--},_listeners:o},p}(),xi=function(){return!Ji&&Dt.wake()},oe={},Zl=/^[\d.\-M][\d.\-,\s]/,Jl=/["']/g,eu=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,s=t.length,o,l,u;n1&&t.config?t.config.apply(null,~e.indexOf("{")?[eu(r[1])]:tu(e).split(",").map(ua)):oe._CE&&Zl.test(e)?oe._CE("",e):t},Aa=function(e){return function(r){return 1-e(1-r)}},ka=function a(e,r){for(var t=e._first,i;t;)t instanceof mt?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},Hr=function(e,r){return e&&(Me(e)?e:oe[e]||ru(e))||r},ri=function(e,r,t,i){t===void 0&&(t=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},s;return wt(e,function(o){oe[o]=Ft[o]=n,oe[s=o.toLowerCase()]=t;for(var l in n)oe[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=oe[o+"."+l]=n[l]}),n},Pa=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},Jn=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),s=n/hs*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*Ml((f-s)*n)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:Pa(o);return n=hs/n,l.config=function(u,f){return a(e,u,f)},l},es=function a(e,r){r===void 0&&(r=1.70158);var t=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:Pa(t);return i.config=function(n){return a(e,n)},i};wt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;ri(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});oe.Linear.easeNone=oe.none=oe.Linear.easeIn;ri("Elastic",Jn("in"),Jn("out"),Jn());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(o){return o0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,bi(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(xi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Xn(this,t),!n._dp||n.parent||ha(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&or(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===ge||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),la(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+_o(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+_o(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?yi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-ge?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?zn(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-ge?0:this._rts,this.totalTime(on(-Math.abs(this._delay),this._tDur,n),i!==!1),Hn(this),Bl(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ge&&(this._tTime-=ge)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&or(i,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Tt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?zn(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Ll);var i=ft;return ft=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),ft=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,po(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,po(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(It(this,t),Tt(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,Tt(i))},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-ge:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ge,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n1?(i?(s[t]=i,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete s[t],this):s[t]},e.then=function(t){var i=this;return new Promise(function(n){var s=Me(t)?t:fa,o=function(){var u=i.then;i.then=null,Me(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=u),n(s),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},e.kill=function(){Oi(this)},a}();qt(en.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-ge,_prom:0,_ps:!1,_rts:1});var mt=function(a){Qo(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=Tt(t.sortChildren),Ae&&or(t.parent||Ae,pr(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&da(pr(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,s){return Ni(0,arguments,this),this},r.from=function(i,n,s){return Ni(1,arguments,this),this},r.fromTo=function(i,n,s,o){return Ni(2,arguments,this),this},r.set=function(i,n,s){return n.duration=0,n.parent=this,Ii(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Ne(i,n,It(this,s),1),this},r.call=function(i,n,s){return or(this,Ne.delayedCall(0,i,n),s)},r.staggerTo=function(i,n,s,o,l,u,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Ne(i,s,It(this,l)),this},r.staggerFrom=function(i,n,s,o,l,u,f){return s.runBackwards=1,Ii(s).immediateRender=Tt(s.immediateRender),this.staggerTo(i,n,s,o,l,u,f)},r.staggerFromTo=function(i,n,s,o,l,u,f,p){return o.startAt=s,Ii(o).immediateRender=Tt(o.immediateRender),this.staggerTo(i,n,o,l,u,f,p)},r.render=function(i,n,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Ge(i),p=this._zTime<0!=i<0&&(this._initted||!u),h,c,g,d,m,w,E,A,y,C,P,x;if(this!==Ae&&f>l&&i>=0&&(f=l),f!==this._tTime||s||p){if(o!==this._time&&u&&(f+=this._time-o,i+=this._time-o),h=f,y=this._start,A=this._ts,w=!A,p&&(u||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(P=this._yoyo,m=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,n,s);if(h=Ge(f%m),f===l?(d=this._repeat,h=u):(d=~~(f/m),d&&d===f/m&&(h=u,d--),h>u&&(h=u)),C=yi(this._tTime,m),!o&&this._tTime&&C!==d&&this._tTime-C*m-this._dur<=0&&(C=d),P&&d&1&&(h=u-h,x=1),d!==C&&!this._lock){var D=P&&C&1,v=D===(P&&d&1);if(d=o&&i>=0)for(c=this._first;c;){if(g=c._next,(c._act||h>=c._start)&&c._ts&&E!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(h-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(h-c._start)*c._ts,n,s),h!==this._time||!this._ts&&!w){E=0,g&&(f+=this._zTime=-ge);break}}c=g}else{c=this._last;for(var T=i<0?i:h;c;){if(g=c._prev,(c._act||T<=c._end)&&c._ts&&E!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(T-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(T-c._start)*c._ts,n,s||ft&&(c._initted||c._startAt)),h!==this._time||!this._ts&&!w){E=0,g&&(f+=this._zTime=T?-ge:ge);break}}c=g}}if(E&&!n&&(this.pause(),E.render(h>=o?0:-ge)._zTime=h>=o?1:-1,this._ts))return this._start=y,Hn(this),this.render(i,n,s);this._onUpdate&&!n&&Rt(this,"onUpdate",!0),(f===l&&this._tTime>=this.totalDuration()||!f&&o)&&(y===this._start||Math.abs(A)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===l&&this._ts>0||!f&&this._ts<0)&&Or(this,1),!n&&!(i<0&&!o)&&(f||o||!l)&&(Rt(this,f===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f0)&&this._prom())))}return this},r.add=function(i,n){var s=this;if(br(n)||(n=It(this,n,i)),!(i instanceof en)){if(ct(i))return i.forEach(function(o){return s.add(o,n)}),this;if(je(i))return this.addLabel(i,n);if(Me(i))i=Ne.delayedCall(0,i);else return this}return this!==i?or(this,i,n):this},r.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Ut);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof Ne?n&&l.push(u):(s&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},r.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},r.remove=function(i){return je(i)?this.removeLabel(i):Me(i)?this.killTweensOf(i):(qn(this,i),i===this._recent&&(this._recent=this._last),qr(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ge(Dt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=It(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,s){var o=Ne.delayedCall(0,n||Qi,s);return o.data="isPause",this._hasPause=1,or(this,o,It(this,i))},r.removePause=function(i){var n=this._first;for(i=It(this,i);n;)n._start===i&&n.data==="isPause"&&Or(n),n=n._next},r.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)wr!==o[l]&&o[l].kill(i,n);return this},r.getTweensOf=function(i,n){for(var s=[],o=Yt(i),l=this._first,u=br(n),f;l;)l instanceof Ne?Rl(l._targets,o)&&(u?(!wr||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(f=l.getTweensOf(o,n)).length&&s.push.apply(s,f),l=l._next;return s},r.tweenTo=function(i,n){n=n||{};var s=this,o=It(s,i),l=n,u=l.startAt,f=l.onStart,p=l.onStartParams,h=l.immediateRender,c,g=Ne.to(s,qt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale())||ge,onStart:function(){if(s.pause(),!c){var m=n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale());g._dur!==m&&bi(g,m,0,1).render(g._time,!0,!0),c=1}f&&f.apply(g,p||[])}},n));return h?g.render(0):g},r.tweenFromTo=function(i,n,s){return this.tweenTo(n,qt({startAt:{time:It(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),go(this,It(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),go(this,It(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+ge)},r.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var o=this._first,l=this.labels,u;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(u in l)l[u]>=s&&(l[u]+=i);return qr(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),qr(this)},r.totalDuration=function(i){var n=0,s=this,o=s._last,l=Ut,u,f,p;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(p=s.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,or(s,o,f-o._delay,1)._lock=0):l=f,f<0&&o._ts&&(n-=f,(!p&&!s._dp||p&&p.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),l=0),o._end>n&&o._ts&&(n=o._end),o=u;bi(s,s===Ae&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(Ae._ts&&(la(Ae,zn(i,Ae)),oa=Dt.frame),Dt.frame>=co){co+=zt.autoSleep||120;var n=Ae._first;if((!n||!n._ts)&&zt.autoSleep&&Dt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Dt.sleep()}}},e}(en);qt(mt.prototype,{_lock:0,_hasPause:0,_forcing:0});var iu=function(e,r,t,i,n,s,o){var l=new Et(this._pt,e,r,0,1,Fa,null,n),u=0,f=0,p,h,c,g,d,m,w,E;for(l.b=t,l.e=i,t+="",i+="",(w=~i.indexOf("random("))&&(i=Zi(i)),s&&(E=[t,i],s(E,e,r),t=E[0],i=E[1]),h=t.match(Kn)||[];p=Kn.exec(i);)g=p[0],d=i.substring(u,p.index),c?c=(c+1)%5:d.substr(-5)==="rgba("&&(c=1),g!==h[f++]&&(m=parseFloat(h[f-1])||0,l._pt={_next:l._pt,p:d||f===1?d:",",s:m,c:g.charAt(1)==="="?hi(m,g)-m:parseFloat(g)-m,m:c&&c<4?Math.round:0},u=Kn.lastIndex);return l.c=u")}),y.duration();else{P={};for(D in g)D==="ease"||D==="easeEach"||au(D,g[D],P,g.easeEach);for(D in P)for(N=P[D].sort(function(F,R){return F.t-R.t}),k=0,C=0;Cl-ge&&!f?l:iu&&(h=u)),w=this._yoyo&&g&1,w&&(y=this._yEase,h=u-h),m=yi(this._tTime,d),h===o&&!s&&this._initted&&g===m)return this._tTime=p,this;g!==m&&(A&&this._yEase&&ka(A,w),this.vars.repeatRefresh&&!w&&!this._lock&&this._time!==d&&this._initted&&(this._lock=s=1,this.render(Ge(d*g),!0).invalidate()._lock=0))}if(!this._initted){if(_a(this,f?i:h,s,n,p))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&g!==m))return this;if(u!==this._dur)return this.render(i,n,s)}if(this._tTime=p,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=E=(y||this._ease)(h/u),this._from&&(this.ratio=E=1-E),h&&!o&&!n&&!g&&(Rt(this,"onStart"),this._tTime!==p))return this;for(c=this._pt;c;)c.r(E,c.d),c=c._next;A&&A.render(i<0?i:A._dur*A._ease(h/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&gs(this,i,n,s),Rt(this,"onUpdate")),this._repeat&&g!==m&&this.vars.onRepeat&&!n&&this.parent&&Rt(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(f&&!this._onUpdate&&gs(this,i,!0,!0),(i||!u)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&Or(this,1),!n&&!(f&&!o)&&(p||o||w)&&(Rt(this,p===l?"onComplete":"onReverseComplete",!0),this._prom&&!(p0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,s,o,l){Ji||Dt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Gs(this,u),f=this._ease(u/this._dur),su(this,i,n,s,o,f,u,l)?this.resetTo(i,n,s,o,1):(Xn(this,0),this.parent||ca(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Oi(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,wr&&wr.vars.overwrite!==!0)._first||Oi(this),this.parent&&s!==this.timeline.totalDuration()&&bi(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?Yt(i):o,u=this._ptLookup,f=this._pt,p,h,c,g,d,m,w;if((!n||n==="all")&&Fl(o,l))return n==="all"&&(this._pt=0),Oi(this);for(p=this._op=this._op||[],n!=="all"&&(je(n)&&(d={},wt(n,function(E){return d[E]=1}),n=d),n=ou(o,n)),w=o.length;w--;)if(~l.indexOf(o[w])){h=u[w],n==="all"?(p[w]=n,g=h,c={}):(c=p[w]=p[w]||{},g=n);for(d in g)m=h&&h[d],m&&((!("kill"in m.d)||m.d.kill(d)===!0)&&qn(this,m,"_pt"),delete h[d]),c!=="all"&&(c[d]=1)}return this._initted&&!this._pt&&f&&Oi(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Ni(1,arguments)},e.delayedCall=function(i,n,s,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,n,s){return Ni(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,s){return Ae.killTweensOf(i,n,s)},e}(en);qt(Ne.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});wt("staggerTo,staggerFrom,staggerFromTo",function(a){Ne[a]=function(){var e=new mt,r=vs.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var js=function(e,r,t){return e[r]=t},Ra=function(e,r,t){return e[r](t)},lu=function(e,r,t,i){return e[r](i.fp,t)},uu=function(e,r,t){return e.setAttribute(r,t)},Ks=function(e,r){return Me(e[r])?Ra:Ws(e[r])&&e.setAttribute?uu:js},za=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},fu=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Fa=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},Qs=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},cu=function(e,r,t,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,r,t),n=s},hu=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?qn(this,r,"_pt"):r.dep||(t=1),r=i;return!t},du=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},Ba=function(e){for(var r=e._pt,t,i,n,s;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=t}e._pt=n},Et=function(){function a(r,t,i,n,s,o,l,u,f){this.t=t,this.s=n,this.c=s,this.p=i,this.r=o||za,this.d=l||this,this.set=u||js,this.pr=f||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=du,this.m=t,this.mt=n,this.tween=i},a}();wt(Hs+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(a){return qs[a]=1});Ft.TweenMax=Ft.TweenLite=Ne;Ft.TimelineLite=Ft.TimelineMax=mt;Ae=new mt({sortChildren:!1,defaults:vi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});zt.stringFilter=Sa;var Xr=[],En={},_u=[],vo=0,pu=0,ts=function(e){return(En[e]||_u).map(function(r){return r()})},Ts=function(){var e=Date.now(),r=[];e-vo>2&&(ts("matchMediaInit"),Xr.forEach(function(t){var i=t.queries,n=t.conditions,s,o,l,u;for(o in i)s=ir.matchMedia(i[o]).matches,s&&(l=1),s!==n[o]&&(n[o]=s,u=1);u&&(t.revert(),l&&r.push(t))}),ts("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),vo=e,ts("matchMedia"))},Ia=function(){function a(r,t){this.selector=t&&ys(t),this.data=[],this._r=[],this.isReverted=!1,this.id=pu++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){Me(t)&&(n=i,i=t,t=Me);var s=this,o=function(){var u=Te,f=s.selector,p;return u&&u!==s&&u.data.push(s),n&&(s.selector=ys(n)),Te=s,p=i.apply(s,arguments),Me(p)&&s._r.push(p),Te=u,s.selector=f,s.isReverted=!1,p};return s.last=o,t===Me?o(s,function(l){return s.add(null,l)}):t?s[t]=o:o},e.ignore=function(t){var i=Te;Te=null,t(this),Te=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof Ne&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?function(){for(var o=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,p){return p.g-f.g||-1/0}).forEach(function(f){return f.t.revert(t)}),l=n.data.length;l--;)u=n.data[l],u instanceof mt?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Ne)&&u.revert&&u.revert(t);n._r.forEach(function(f){return f(t,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=Xr.length;s--;)Xr[s].id===this.id&&Xr.splice(s,1)},e.revert=function(t){this.kill(t||{})},a}(),gu=function(){function a(r){this.contexts=[],this.scope=r,Te&&Te.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){cr(t)||(t={matches:t});var s=new Ia(0,n||this.scope),o=s.conditions={},l,u,f;Te&&!s.selector&&(s.selector=Te.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=t;for(u in t)u==="all"?f=1:(l=ir.matchMedia(t[u]),l&&(Xr.indexOf(s)<0&&Xr.push(s),(o[u]=l.matches)&&(f=1),l.addListener?l.addListener(Ts):l.addEventListener("change",Ts)));return f&&i(s,function(p){return s.add(null,p)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a}(),Fn={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t1){var i=e.map(function(f){return St.quickSetter(f,r,t)}),n=i.length;return function(f){for(var p=n;p--;)i[p](f)}}e=e[0]||{};var s=Ot[r],o=$r(e),l=o.harness&&(o.harness.aliases||{})[r]||r,u=s?function(f){var p=new s;fi._pt=0,p.init(e,t?f+t:f,fi,0,[e]),p.render(1,p),fi._pt&&Qs(1,fi)}:o.set(e,l);return s?u:function(f){return u(e,l,t?f+t:f,o,1)}},quickTo:function(e,r,t){var i,n=St.to(e,Qr((i={},i[r]="+=0.1",i.paused=!0,i),t||{})),s=function(l,u,f){return n.resetTo(r,l,u,f)};return s.tween=n,s},isTweening:function(e){return Ae.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Hr(e.ease,vi.ease)),ho(vi,e||{})},config:function(e){return ho(zt,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!Ot[o]&&!Ft[o]&&Ki(r+" effect requires "+o+" plugin.")}),Qn[r]=function(o,l,u){return t(Yt(o),qt(l||{},n),u)},s&&(mt.prototype[r]=function(o,l,u){return this.add(Qn[r](o,cr(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,r){oe[e]=Hr(r)},parseEase:function(e,r){return arguments.length?Hr(e,r):oe},getById:function(e){return Ae.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new mt(e),i,n;for(t.smoothChildTiming=Tt(e.smoothChildTiming),Ae.remove(t),t._dp=0,t._time=t._tTime=Ae._time,i=Ae._first;i;)n=i._next,(r||!(!i._dur&&i instanceof Ne&&i.vars.onComplete===i._targets[0]))&&or(t,i,i._start-i._delay),i=n;return or(Ae,t,0),t},context:function(e,r){return e?new Ia(e,r):Te},matchMedia:function(e){return new gu(e)},matchMediaRefresh:function(){return Xr.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||Ts()},addEventListener:function(e,r){var t=En[e]||(En[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=En[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:Gl,wrapYoyo:jl,distribute:ma,random:ya,snap:va,normalize:Vl,getUnit:ut,clamp:$l,splitColor:Ea,toArray:Yt,selector:ys,mapRange:xa,pipe:Hl,unitize:Xl,interpolate:Kl,shuffle:ga},install:na,effects:Qn,ticker:Dt,updateRoot:mt.updateRoot,plugins:Ot,globalTimeline:Ae,core:{PropTween:Et,globals:sa,Tween:Ne,Timeline:mt,Animation:en,getCache:$r,_removeLinkedListItem:qn,reverting:function(){return ft},context:function(e){return e&&Te&&(Te.data.push(e),e._ctx=Te),Te},suppressOverwrites:function(e){return Ns=e}}};wt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Fn[a]=Ne[a]});Dt.add(mt.updateRoot);fi=Fn.to({},{duration:0});var mu=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},vu=function(e,r){var t=e._targets,i,n,s;for(i in r)for(n=t.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=mu(s,i)),s&&s.modifier&&s.modifier(r[i],e,t[n],i))},rs=function(e,r){return{name:e,rawVars:1,init:function(i,n,s){s._onInit=function(o){var l,u;if(je(n)&&(l={},wt(n,function(f){return l[f]=1}),n=l),r){l={};for(u in n)l[u]=r(n[u]);n=l}vu(o,n)}}}},St=Fn.registerPlugin({name:"attr",init:function(e,r,t,i,n){var s,o,l;this.tween=t;for(s in r)l=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(l||0)+"",r[s],i,n,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(e,r){for(var t=r._pt;t;)ft?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},rs("roundProps",bs),rs("modifiers"),rs("snap",va))||Fn;Ne.version=mt.version=St.version="3.12.5";ia=1;Us()&&xi();oe.Power0;oe.Power1;oe.Power2;oe.Power3;oe.Power4;oe.Linear;oe.Quad;oe.Cubic;oe.Quart;oe.Quint;oe.Strong;oe.Elastic;oe.Back;oe.SteppedEase;oe.Bounce;oe.Sine;oe.Expo;oe.Circ;/*! * CSSPlugin 3.12.5 * https://gsap.com * * Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var yo,Er,di,Zs,Ur,bo,Js,yu=function(){return typeof window<"u"},xr={},Ir=180/Math.PI,_i=Math.PI/180,ni=Math.atan2,xo=1e8,eo=/([A-Z])/g,bu=/(left|right|width|margin|padding|x)/i,xu=/[\s,\(]\S/,ar={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ws=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Tu=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},wu=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Eu=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},Na=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},Wa=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},Cu=function(e,r,t){return e.style[r]=t},Su=function(e,r,t){return e.style.setProperty(r,t)},Au=function(e,r,t){return e._gsap[r]=t},ku=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},Pu=function(e,r,t,i,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Mu=function(e,r,t,i,n){var s=e._gsap;s[r]=t,s.renderTransform(n,s)},ke="transform",Ct=ke+"Origin",Ou=function a(e,r){var t=this,i=this.target,n=i.style,s=i._gsap;if(e in xr&&n){if(this.tfm=this.tfm||{},e!=="transform")e=ar[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return t.tfm[o]=gr(i,o)}):this.tfm[e]=s.x?s[e]:gr(i,e),e===Ct&&(this.tfm.zOrigin=s.zOrigin);else return ar.transform.split(",").forEach(function(o){return a.call(t,o,r)});if(this.props.indexOf(ke)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ct,r,"")),e=ke}(n||r)&&this.props.push(e,r,n[e])},Ua=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Du=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,s;for(n=0;n=0?To[s]:"")+e},Cs=function(){yu()&&window.document&&(yo=window,Er=yo.document,di=Er.documentElement,Ur=Es("div")||{style:{}},Es("div"),ke=Ti(ke),Ct=ke+"Origin",Ur.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",$a=!!Ti("perspective"),Js=St.core.reverting,Zs=1)},is=function a(e){var r=Es("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),t=this.parentNode,i=this.nextSibling,n=this.style.cssText,s;if(di.appendChild(r),r.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=a}catch{}else this._gsapBBox&&(s=this._gsapBBox());return t&&(i?t.insertBefore(this,i):t.appendChild(this)),di.removeChild(r),this.style.cssText=n,s},wo=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},qa=function(e){var r;try{r=e.getBBox()}catch{r=is.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===is||(r=is.call(e,!0)),r&&!r.width&&!r.x&&!r.y?{x:+wo(e,["x","cx","x1"])||0,y:+wo(e,["y","cy","y1"])||0,width:0,height:0}:r},Ha=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&qa(e))},Zr=function(e,r){if(r){var t=e.style,i;r in xr&&r!==Ct&&(r=ke),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(eo,"-$1").toLowerCase())):t.removeAttribute(r)}},Cr=function(e,r,t,i,n,s){var o=new Et(e._pt,r,t,0,1,s?Wa:Na);return e._pt=o,o.b=i,o.e=n,e._props.push(t),o},Eo={deg:1,rad:1,turn:1},Lu={grid:1,flex:1},Dr=function a(e,r,t,i){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",o=Ur.style,l=bu.test(r),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),p=100,h=i==="px",c=i==="%",g,d,m,w;if(i===s||!n||Eo[i]||Eo[s])return n;if(s!=="px"&&!h&&(n=a(e,r,t,"px")),w=e.getCTM&&Ha(e),(c||s==="%")&&(xr[r]||~r.indexOf("adius")))return g=w?e.getBBox()[l?"width":"height"]:e[f],Le(c?n/g*p:n/100*g);if(o[l?"width":"height"]=p+(h?s:i),d=~r.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===Er||!d.appendChild)&&(d=Er.body),m=d._gsap,m&&c&&m.width&&l&&m.time===Dt.time&&!m.uncache)return Le(n/m.width*p);if(c&&(r==="height"||r==="width")){var E=e.style[r];e.style[r]=p+i,g=e[f],E?e.style[r]=E:Zr(e,r)}else(c||s==="%")&&!Lu[ur(d,"display")]&&(o.position=ur(e,"position")),d===e&&(o.position="static"),d.appendChild(Ur),g=Ur[f],d.removeChild(Ur),o.position="absolute";return l&&c&&(m=$r(d),m.time=Dt.time,m.width=d[f]),Le(h?g*n/p:g&&n?p/g*n:0)},gr=function(e,r,t,i){var n;return Zs||Cs(),r in ar&&r!=="transform"&&(r=ar[r],~r.indexOf(",")&&(r=r.split(",")[0])),xr[r]&&r!=="transform"?(n=rn(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:In(ur(e,Ct))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Bn[r]&&Bn[r](e,r,t)||ur(e,r)||aa(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Dr(e,r,n,t)+t:n},Ru=function(e,r,t,i){if(!t||t==="none"){var n=Ti(r,e,1),s=n&&ur(e,n,1);s&&s!==t?(r=n,t=s):r==="borderColor"&&(t=ur(e,"borderTopColor"))}var o=new Et(this._pt,e.style,r,0,1,Fa),l=0,u=0,f,p,h,c,g,d,m,w,E,A,y,C;if(o.b=t,o.e=i,t+="",i+="",i==="auto"&&(d=e.style[r],e.style[r]=i,i=ur(e,r)||i,d?e.style[r]=d:Zr(e,r)),f=[t,i],Sa(f),t=f[0],i=f[1],h=t.match(ui)||[],C=i.match(ui)||[],C.length){for(;p=ui.exec(i);)m=p[0],E=i.substring(l,p.index),g?g=(g+1)%5:(E.substr(-5)==="rgba("||E.substr(-5)==="hsla(")&&(g=1),m!==(d=h[u++]||"")&&(c=parseFloat(d)||0,y=d.substr((c+"").length),m.charAt(1)==="="&&(m=hi(c,m)+y),w=parseFloat(m),A=m.substr((w+"").length),l=ui.lastIndex-A.length,A||(A=A||zt.units[r]||y,l===i.length&&(i+=A,o.e+=A)),y!==A&&(c=Dr(e,r,d,A)||0),o._pt={_next:o._pt,p:E||u===1?E:",",s:c,c:w-c,m:g&&g<4||r==="zIndex"?Math.round:0});o.c=l-1;)o=n[u],xr[o]&&(l=1,o=o==="transformOrigin"?Ct:ke),Zr(t,o);l&&(Zr(t,ke),s&&(s.svg&&t.removeAttribute("transform"),rn(t,1),s.uncache=1,Ua(i)))}},Bn={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var s=e._pt=new Et(e._pt,r,t,0,0,Fu);return s.u=i,s.pr=-10,s.tween=n,e._props.push(t),1}}},tn=[1,0,0,1,0,0],Xa={},Va=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},So=function(e){var r=ur(e,ke);return Va(r)?tn:r.substr(7).match(ea).map(Le)},to=function(e,r){var t=e._gsap||$r(e),i=e.style,n=So(e),s,o,l,u;return t.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?tn:n):(n===tn&&!e.offsetParent&&e!==di&&!t.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(u=1,o=e.nextElementSibling,di.appendChild(e)),n=So(e),l?i.display=l:Zr(e,"display"),u&&(o?s.insertBefore(e,o):s?s.appendChild(e):di.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ss=function(e,r,t,i,n,s){var o=e._gsap,l=n||to(e,!0),u=o.xOrigin||0,f=o.yOrigin||0,p=o.xOffset||0,h=o.yOffset||0,c=l[0],g=l[1],d=l[2],m=l[3],w=l[4],E=l[5],A=r.split(" "),y=parseFloat(A[0])||0,C=parseFloat(A[1])||0,P,x,D,v;t?l!==tn&&(x=c*m-g*d)&&(D=y*(m/x)+C*(-d/x)+(d*E-m*w)/x,v=y*(-g/x)+C*(c/x)-(c*E-g*w)/x,y=D,C=v):(P=qa(e),y=P.x+(~A[0].indexOf("%")?y/100*P.width:y),C=P.y+(~(A[1]||A[0]).indexOf("%")?C/100*P.height:C)),i||i!==!1&&o.smooth?(w=y-u,E=C-f,o.xOffset=p+(w*c+E*d)-w,o.yOffset=h+(w*g+E*m)-E):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=C,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!t,e.style[Ct]="0px 0px",s&&(Cr(s,o,"xOrigin",u,y),Cr(s,o,"yOrigin",f,C),Cr(s,o,"xOffset",p,o.xOffset),Cr(s,o,"yOffset",h,o.yOffset)),e.setAttribute("data-svg-origin",y+" "+C)},rn=function(e,r){var t=e._gsap||new Ma(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,s="px",o="deg",l=getComputedStyle(e),u=ur(e,Ct)||"0",f,p,h,c,g,d,m,w,E,A,y,C,P,x,D,v,T,O,k,N,I,z,F,R,S,M,_,U,H,q,K,G;return f=p=h=d=m=w=E=A=y=0,c=g=1,t.svg=!!(e.getCTM&&Ha(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ke]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ke]!=="none"?l[ke]:"")),i.scale=i.rotate=i.translate="none"),x=to(e,t.svg),t.svg&&(t.uncache?(S=e.getBBox(),u=t.xOrigin-S.x+"px "+(t.yOrigin-S.y)+"px",R=""):R=!r&&e.getAttribute("data-svg-origin"),Ss(e,R||u,!!R||t.originIsAbsolute,t.smooth!==!1,x)),C=t.xOrigin||0,P=t.yOrigin||0,x!==tn&&(O=x[0],k=x[1],N=x[2],I=x[3],f=z=x[4],p=F=x[5],x.length===6?(c=Math.sqrt(O*O+k*k),g=Math.sqrt(I*I+N*N),d=O||k?ni(k,O)*Ir:0,E=N||I?ni(N,I)*Ir+d:0,E&&(g*=Math.abs(Math.cos(E*_i))),t.svg&&(f-=C-(C*O+P*N),p-=P-(C*k+P*I))):(G=x[6],q=x[7],_=x[8],U=x[9],H=x[10],K=x[11],f=x[12],p=x[13],h=x[14],D=ni(G,H),m=D*Ir,D&&(v=Math.cos(-D),T=Math.sin(-D),R=z*v+_*T,S=F*v+U*T,M=G*v+H*T,_=z*-T+_*v,U=F*-T+U*v,H=G*-T+H*v,K=q*-T+K*v,z=R,F=S,G=M),D=ni(-N,H),w=D*Ir,D&&(v=Math.cos(-D),T=Math.sin(-D),R=O*v-_*T,S=k*v-U*T,M=N*v-H*T,K=I*T+K*v,O=R,k=S,N=M),D=ni(k,O),d=D*Ir,D&&(v=Math.cos(D),T=Math.sin(D),R=O*v+k*T,S=z*v+F*T,k=k*v-O*T,F=F*v-z*T,O=R,z=S),m&&Math.abs(m)+Math.abs(d)>359.9&&(m=d=0,w=180-w),c=Le(Math.sqrt(O*O+k*k+N*N)),g=Le(Math.sqrt(F*F+G*G)),D=ni(z,F),E=Math.abs(D)>2e-4?D*Ir:0,y=K?1/(K<0?-K:K):0),t.svg&&(R=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!Va(ur(e,ke)),R&&e.setAttribute("transform",R))),Math.abs(E)>90&&Math.abs(E)<270&&(n?(c*=-1,E+=d<=0?180:-180,d+=d<=0?180:-180):(g*=-1,E+=E<=0?180:-180)),r=r||t.uncache,t.x=f-((t.xPercent=f&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=p-((t.yPercent=p&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-p)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=h+s,t.scaleX=Le(c),t.scaleY=Le(g),t.rotation=Le(d)+o,t.rotationX=Le(m)+o,t.rotationY=Le(w)+o,t.skewX=E+o,t.skewY=A+o,t.transformPerspective=y+s,(t.zOrigin=parseFloat(u.split(" ")[2])||!r&&t.zOrigin||0)&&(i[Ct]=In(u)),t.xOffset=t.yOffset=0,t.force3D=zt.force3D,t.renderTransform=t.svg?Iu:$a?Ga:Bu,t.uncache=0,t},In=function(e){return(e=e.split(" "))[0]+" "+e[1]},ns=function(e,r,t){var i=ut(r);return Le(parseFloat(r)+parseFloat(Dr(e,"x",t+"px",i)))+i},Bu=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,Ga(e,r)},Fr="0deg",ki="0px",Br=") ",Ga=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.z,u=t.rotation,f=t.rotationY,p=t.rotationX,h=t.skewX,c=t.skewY,g=t.scaleX,d=t.scaleY,m=t.transformPerspective,w=t.force3D,E=t.target,A=t.zOrigin,y="",C=w==="auto"&&e&&e!==1||w===!0;if(A&&(p!==Fr||f!==Fr)){var P=parseFloat(f)*_i,x=Math.sin(P),D=Math.cos(P),v;P=parseFloat(p)*_i,v=Math.cos(P),s=ns(E,s,x*v*-A),o=ns(E,o,-Math.sin(P)*-A),l=ns(E,l,D*v*-A+A)}m!==ki&&(y+="perspective("+m+Br),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),(C||s!==ki||o!==ki||l!==ki)&&(y+=l!==ki||C?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Br),u!==Fr&&(y+="rotate("+u+Br),f!==Fr&&(y+="rotateY("+f+Br),p!==Fr&&(y+="rotateX("+p+Br),(h!==Fr||c!==Fr)&&(y+="skew("+h+", "+c+Br),(g!==1||d!==1)&&(y+="scale("+g+", "+d+Br),E.style[ke]=y||"translate(0, 0)"},Iu=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.rotation,u=t.skewX,f=t.skewY,p=t.scaleX,h=t.scaleY,c=t.target,g=t.xOrigin,d=t.yOrigin,m=t.xOffset,w=t.yOffset,E=t.forceCSS,A=parseFloat(s),y=parseFloat(o),C,P,x,D,v;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=_i,u*=_i,C=Math.cos(l)*p,P=Math.sin(l)*p,x=Math.sin(l-u)*-h,D=Math.cos(l-u)*h,u&&(f*=_i,v=Math.tan(u-f),v=Math.sqrt(1+v*v),x*=v,D*=v,f&&(v=Math.tan(f),v=Math.sqrt(1+v*v),C*=v,P*=v)),C=Le(C),P=Le(P),x=Le(x),D=Le(D)):(C=p,D=h,P=x=0),(A&&!~(s+"").indexOf("px")||y&&!~(o+"").indexOf("px"))&&(A=Dr(c,"x",s,"px"),y=Dr(c,"y",o,"px")),(g||d||m||w)&&(A=Le(A+g-(g*C+d*x)+m),y=Le(y+d-(g*P+d*D)+w)),(i||n)&&(v=c.getBBox(),A=Le(A+i/100*v.width),y=Le(y+n/100*v.height)),v="matrix("+C+","+P+","+x+","+D+","+A+","+y+")",c.setAttribute("transform",v),E&&(c.style[ke]=v)},Nu=function(e,r,t,i,n){var s=360,o=je(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Ir:1),u=l-i,f=i+u+"deg",p,h;return o&&(p=n.split("_")[1],p==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),p==="cw"&&u<0?u=(u+s*xo)%s-~~(u/s)*s:p==="ccw"&&u>0&&(u=(u-s*xo)%s-~~(u/s)*s)),e._pt=h=new Et(e._pt,r,t,i,u,Tu),h.e=f,h.u="deg",e._props.push(t),h},Ao=function(e,r){for(var t in r)e[t]=r[t];return e},Wu=function(e,r,t){var i=Ao({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,o,l,u,f,p,h,c,g;i.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),s[ke]=r,o=rn(t,1),Zr(t,ke),t.setAttribute("transform",u)):(u=getComputedStyle(t)[ke],s[ke]=r,o=rn(t,1),s[ke]=u);for(l in xr)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(c=ut(u),g=ut(f),p=c!==g?Dr(t,l,u,g):parseFloat(u),h=parseFloat(f),e._pt=new Et(e._pt,o,l,p,h-p,ws),e._pt.u=g||0,e._props.push(l));Ao(o,i)};wt("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",s=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(o){return e<2?a+o:"border"+o+a});Bn[e>1?"border"+a:a]=function(o,l,u,f,p){var h,c;if(arguments.length<4)return h=s.map(function(g){return gr(o,g,u)}),c=h.join(" "),c.split(h[0]).length===5?h[0]:c;h=(f+"").split(" "),c={},s.forEach(function(g,d){return c[g]=h[d]=h[d]||h[(d-1)/2|0]}),o.init(l,c,p)}});var ja={name:"css",register:Cs,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var s=this._props,o=e.style,l=t.vars.startAt,u,f,p,h,c,g,d,m,w,E,A,y,C,P,x,D;Zs||Cs(),this.styles=this.styles||Ya(e),D=this.styles.props,this.tween=t;for(d in r)if(d!=="autoRound"&&(f=r[d],!(Ot[d]&&Oa(d,r,t,i,e,n)))){if(c=typeof f,g=Bn[d],c==="function"&&(f=f.call(t,i,e,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=Zi(f)),g)g(this,e,d,f,t)&&(x=1);else if(d.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(d)+"").trim(),f+="",Pr.lastIndex=0,Pr.test(u)||(m=ut(u),w=ut(f)),w?m!==w&&(u=Dr(e,d,u,w)+w):m&&(f+=m),this.add(o,"setProperty",u,f,i,n,0,0,d),s.push(d),D.push(d,0,o[d]);else if(c!=="undefined"){if(l&&d in l?(u=typeof l[d]=="function"?l[d].call(t,i,e,n):l[d],je(u)&&~u.indexOf("random(")&&(u=Zi(u)),ut(u+"")||u==="auto"||(u+=zt.units[d]||ut(gr(e,d))||""),(u+"").charAt(1)==="="&&(u=gr(e,d))):u=gr(e,d),h=parseFloat(u),E=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),E&&(f=f.substr(2)),p=parseFloat(f),d in ar&&(d==="autoAlpha"&&(h===1&&gr(e,"visibility")==="hidden"&&p&&(h=0),D.push("visibility",0,o.visibility),Cr(this,o,"visibility",h?"inherit":"hidden",p?"inherit":"hidden",!p)),d!=="scale"&&d!=="transform"&&(d=ar[d],~d.indexOf(",")&&(d=d.split(",")[0]))),A=d in xr,A){if(this.styles.save(d),y||(C=e._gsap,C.renderTransform&&!r.parseTransform||rn(e,r.parseTransform),P=r.smoothOrigin!==!1&&C.smooth,y=this._pt=new Et(this._pt,o,ke,0,1,C.renderTransform,C,0,-1),y.dep=1),d==="scale")this._pt=new Et(this._pt,C,"scaleY",C.scaleY,(E?hi(C.scaleY,E+p):p)-C.scaleY||0,ws),this._pt.u=0,s.push("scaleY",d),d+="X";else if(d==="transformOrigin"){D.push(Ct,0,o[Ct]),f=zu(f),C.svg?Ss(e,f,0,P,0,this):(w=parseFloat(f.split(" ")[2])||0,w!==C.zOrigin&&Cr(this,C,"zOrigin",C.zOrigin,w),Cr(this,o,d,In(u),In(f)));continue}else if(d==="svgOrigin"){Ss(e,f,1,P,0,this);continue}else if(d in Xa){Nu(this,C,d,h,E?hi(h,E+f):f);continue}else if(d==="smoothOrigin"){Cr(this,C,"smooth",C.smooth,f);continue}else if(d==="force3D"){C[d]=f;continue}else if(d==="transform"){Wu(this,f,e);continue}}else d in o||(d=Ti(d)||d);if(A||(p||p===0)&&(h||h===0)&&!xu.test(f)&&d in o)m=(u+"").substr((h+"").length),p||(p=0),w=ut(f)||(d in zt.units?zt.units[d]:m),m!==w&&(h=Dr(e,d,u,w)),this._pt=new Et(this._pt,A?C:o,d,h,(E?hi(h,E+p):p)-h,!A&&(w==="px"||d==="zIndex")&&r.autoRound!==!1?Eu:ws),this._pt.u=w||0,m!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=wu);else if(d in o)Ru.call(this,e,d,u,E?E+f:f);else if(d in e)this.add(e,d,u||e[d],E?E+f:f,i,n);else if(d!=="parseTransform"){$s(d,f);continue}A||(d in o?D.push(d,0,o[d]):D.push(d,1,u||e[d])),s.push(d)}}x&&Ba(this)},render:function(e,r){if(r.tween._time||!Js())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:gr,aliases:ar,getSetter:function(e,r,t){var i=ar[r];return i&&i.indexOf(",")<0&&(r=i),r in xr&&r!==Ct&&(e._gsap.x||gr(e,"x"))?t&&bo===t?r==="scale"?ku:Au:(bo=t||{})&&(r==="scale"?Pu:Mu):e.style&&!Ws(e.style[r])?Cu:~r.indexOf("-")?Su:Ks(e,r)},core:{_removeProperty:Zr,_getMatrix:to}};St.utils.checkPrefix=Ti;St.core.getStyleSaver=Ya;(function(a,e,r,t){var i=wt(a+","+e+","+r,function(n){xr[n]=1});wt(e,function(n){zt.units[n]="deg",Xa[n]=1}),ar[i[13]]=a+","+e,wt(t,function(n){var s=n.split(":");ar[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");wt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){zt.units[a]="px"});St.registerPlugin(ja);var Vr=St.registerPlugin(ja)||St;Vr.core.Tween;function Uu(a,e){for(var r=0;rl?(n=i,i=g,o=s,s=m):t?i+=g:i=n+(g-n)/(m-o)*(s-o)},p=function(){n=i=t?0:i,o=s=0},h=function(g){var d=o,m=n,w=Yi();return(g||g===0)&&g!==i&&f(g),s===o||w-o>u?0:(i+(t?m:-m))/((t?w:s)-d)*1e3};return{update:f,reset:p,getVelocity:h}},Pi=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},ko=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},tl=function(){Ui=tt.core.globals().ScrollTrigger,Ui&&Ui.core&&$u()},rl=function(e){return tt=e||Ja(),!Cn&&tt&&typeof document<"u"&&document.body&&(Lt=window,Sr=document,Ar=Sr.documentElement,pi=Sr.body,Qa=[Lt,Sr,Ar,pi],tt.utils.clamp,Za=tt.core.context||function(){},Nr="onpointerenter"in pi?"pointer":"mouse",Ka=Re.isTouch=Lt.matchMedia&&Lt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Lt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,jt=Re.eventTypes=("ontouchstart"in Ar?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ar?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return el=0},500),tl(),Cn=1),Cn};vt.op=$e;te.cache=0;var Re=function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){Cn||rl(tt)||console.warn("Please gsap.registerPlugin(Observer)"),Ui||tl();var i=t.tolerance,n=t.dragMinimum,s=t.type,o=t.target,l=t.lineHeight,u=t.debounce,f=t.preventDefault,p=t.onStop,h=t.onStopDelay,c=t.ignore,g=t.wheelSpeed,d=t.event,m=t.onDragStart,w=t.onDragEnd,E=t.onDrag,A=t.onPress,y=t.onRelease,C=t.onRight,P=t.onLeft,x=t.onUp,D=t.onDown,v=t.onChangeX,T=t.onChangeY,O=t.onChange,k=t.onToggleX,N=t.onToggleY,I=t.onHover,z=t.onHoverEnd,F=t.onMove,R=t.ignoreCheck,S=t.isNormalizer,M=t.onGestureStart,_=t.onGestureEnd,U=t.onWheel,H=t.onEnable,q=t.onDisable,K=t.onClick,G=t.scrollSpeed,J=t.capture,ae=t.allowClicks,_e=t.lockAxis,ye=t.onLockAxis;this.target=o=xt(o)||Ar,this.vars=t,c&&(c=tt.utils.toArray(c)),i=i||1e-9,n=n||0,g=g||1,G=G||1,s=s||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Lt.getComputedStyle(pi).lineHeight)||22);var Qt,Ke,At,le,ce,pe,ze,b=this,rt=0,Ht=0,Xt=t.passive||!f,ue=Lr(o,vt),Vt=Lr(o,$e),hr=ue(),dr=Vt(),Fe=~s.indexOf("touch")&&!~s.indexOf("pointer")&&jt[0]==="pointerdown",Zt=$i(o),we=o.ownerDocument||Sr,Qe=[0,0,0],bt=[0,0,0],Bt=0,Jt=function(){return Bt=Yi()},L=function($,fe){return(b.event=$)&&c&&~c.indexOf($.target)||fe&&Fe&&$.pointerType!=="touch"||R&&R($,fe)},X=function(){b._vx.reset(),b._vy.reset(),Ke.pause(),p&&p(b)},ie=function(){var $=b.deltaX=ko(Qe),fe=b.deltaY=ko(bt),B=Math.abs($)>=i,Z=Math.abs(fe)>=i;O&&(B||Z)&&O(b,$,fe,Qe,bt),B&&(C&&b.deltaX>0&&C(b),P&&b.deltaX<0&&P(b),v&&v(b),k&&b.deltaX<0!=rt<0&&k(b),rt=b.deltaX,Qe[0]=Qe[1]=Qe[2]=0),Z&&(D&&b.deltaY>0&&D(b),x&&b.deltaY<0&&x(b),T&&T(b),N&&b.deltaY<0!=Ht<0&&N(b),Ht=b.deltaY,bt[0]=bt[1]=bt[2]=0),(le||At)&&(F&&F(b),At&&(E(b),At=!1),le=!1),pe&&!(pe=!1)&&ye&&ye(b),ce&&(U(b),ce=!1),Qt=0},me=function($,fe,B){Qe[B]+=$,bt[B]+=fe,b._vx.update($),b._vy.update(fe),u?Qt||(Qt=requestAnimationFrame(ie)):ie()},Ee=function($,fe){_e&&!ze&&(b.axis=ze=Math.abs($)>Math.abs(fe)?"x":"y",pe=!0),ze!=="y"&&(Qe[2]+=$,b._vx.update($,!0)),ze!=="x"&&(bt[2]+=fe,b._vy.update(fe,!0)),u?Qt||(Qt=requestAnimationFrame(ie)):ie()},be=function($){if(!L($,1)){$=Pi($,f);var fe=$.clientX,B=$.clientY,Z=fe-b.x,Y=B-b.y,j=b.isDragging;b.x=fe,b.y=B,(j||Math.abs(b.startX-fe)>=n||Math.abs(b.startY-B)>=n)&&(E&&(At=!0),j||(b.isDragging=!0),Ee(Z,Y),j||m&&m(b))}},Ze=b.onPress=function(Q){L(Q,1)||Q&&Q.button||(b.axis=ze=null,Ke.pause(),b.isPressed=!0,Q=Pi(Q),rt=Ht=0,b.startX=b.x=Q.clientX,b.startY=b.y=Q.clientY,b._vx.reset(),b._vy.reset(),dt(S?o:we,jt[1],be,Xt,!0),b.deltaX=b.deltaY=0,A&&A(b))},V=b.onRelease=function(Q){if(!L(Q,1)){ht(S?o:we,jt[1],be,!0);var $=!isNaN(b.y-b.startY),fe=b.isDragging,B=fe&&(Math.abs(b.x-b.startX)>3||Math.abs(b.y-b.startY)>3),Z=Pi(Q);!B&&$&&(b._vx.reset(),b._vy.reset(),f&&ae&&tt.delayedCall(.08,function(){if(Yi()-Bt>300&&!Q.defaultPrevented){if(Q.target.click)Q.target.click();else if(we.createEvent){var Y=we.createEvent("MouseEvents");Y.initMouseEvent("click",!0,!0,Lt,1,Z.screenX,Z.screenY,Z.clientX,Z.clientY,!1,!1,!1,!1,0,null),Q.target.dispatchEvent(Y)}}})),b.isDragging=b.isGesturing=b.isPressed=!1,p&&fe&&!S&&Ke.restart(!0),w&&fe&&w(b),y&&y(b,B)}},it=function($){return $.touches&&$.touches.length>1&&(b.isGesturing=!0)&&M($,b.isDragging)},Oe=function(){return(b.isGesturing=!1)||_(b)},We=function($){if(!L($)){var fe=ue(),B=Vt();me((fe-hr)*G,(B-dr)*G,1),hr=fe,dr=B,p&&Ke.restart(!0)}},qe=function($){if(!L($)){$=Pi($,f),U&&(ce=!0);var fe=($.deltaMode===1?l:$.deltaMode===2?Lt.innerHeight:1)*g;me($.deltaX*fe,$.deltaY*fe,0),p&&!S&&Ke.restart(!0)}},Be=function($){if(!L($)){var fe=$.clientX,B=$.clientY,Z=fe-b.x,Y=B-b.y;b.x=fe,b.y=B,le=!0,p&&Ke.restart(!0),(Z||Y)&&Ee(Z,Y)}},ii=function($){b.event=$,I(b)},_r=function($){b.event=$,z(b)},Ei=function($){return L($)||Pi($,f)&&K(b)};Ke=b._dc=tt.delayedCall(h||.25,X).pause(),b.deltaX=b.deltaY=0,b._vx=Ps(0,50,!0),b._vy=Ps(0,50,!0),b.scrollX=ue,b.scrollY=Vt,b.isDragging=b.isGesturing=b.isPressed=!1,Za(this),b.enable=function(Q){return b.isEnabled||(dt(Zt?we:o,"scroll",ks),s.indexOf("scroll")>=0&&dt(Zt?we:o,"scroll",We,Xt,J),s.indexOf("wheel")>=0&&dt(o,"wheel",qe,Xt,J),(s.indexOf("touch")>=0&&Ka||s.indexOf("pointer")>=0)&&(dt(o,jt[0],Ze,Xt,J),dt(we,jt[2],V),dt(we,jt[3],V),ae&&dt(o,"click",Jt,!0,!0),K&&dt(o,"click",Ei),M&&dt(we,"gesturestart",it),_&&dt(we,"gestureend",Oe),I&&dt(o,Nr+"enter",ii),z&&dt(o,Nr+"leave",_r),F&&dt(o,Nr+"move",Be)),b.isEnabled=!0,Q&&Q.type&&Ze(Q),H&&H(b)),b},b.disable=function(){b.isEnabled&&(ci.filter(function(Q){return Q!==b&&$i(Q.target)}).length||ht(Zt?we:o,"scroll",ks),b.isPressed&&(b._vx.reset(),b._vy.reset(),ht(S?o:we,jt[1],be,!0)),ht(Zt?we:o,"scroll",We,J),ht(o,"wheel",qe,J),ht(o,jt[0],Ze,J),ht(we,jt[2],V),ht(we,jt[3],V),ht(o,"click",Jt,!0),ht(o,"click",Ei),ht(we,"gesturestart",it),ht(we,"gestureend",Oe),ht(o,Nr+"enter",ii),ht(o,Nr+"leave",_r),ht(o,Nr+"move",Be),b.isEnabled=b.isPressed=b.isDragging=!1,q&&q(b))},b.kill=b.revert=function(){b.disable();var Q=ci.indexOf(b);Q>=0&&ci.splice(Q,1),vr===b&&(vr=0)},ci.push(b),S&&$i(o)&&(vr=b),b.enable(d)},Yu(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a}();Re.version="3.12.5";Re.create=function(a){return new Re(a)};Re.register=rl;Re.getAll=function(){return ci.slice()};Re.getById=function(a){return ci.filter(function(e){return e.vars.id===a})[0]};Ja()&&tt.registerPlugin(Re);/*! * ScrollTrigger 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var W,ai,se,Se,Kt,ve,il,Wn,nn,qi,Li,hn,at,Vn,Ms,pt,Po,Mo,li,nl,ss,sl,_t,Os,ol,al,Tr,Ds,ro,gi,io,Un,Ls,os,dn=1,lt=Date.now,as=lt(),$t=0,Ri=0,Oo=function(e,r,t){var i=Mt(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},Do=function(e,r){return r&&(!Mt(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},qu=function a(){return Ri&&requestAnimationFrame(a)},Lo=function(){return Vn=1},Ro=function(){return Vn=0},nr=function(e){return e},zi=function(e){return Math.round(e*1e5)/1e5||0},ll=function(){return typeof window<"u"},ul=function(){return W||ll()&&(W=window.gsap)&&W.registerPlugin&&W},Jr=function(e){return!!~il.indexOf(e)},fl=function(e){return(e==="Height"?io:se["inner"+e])||Kt["client"+e]||ve["client"+e]},cl=function(e){return Mr(e,"getBoundingClientRect")||(Jr(e)?function(){return Mn.width=se.innerWidth,Mn.height=io,Mn}:function(){return mr(e)})},Hu=function(e,r,t){var i=t.d,n=t.d2,s=t.a;return(s=Mr(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?fl(n):e["client"+n])||0}},Xu=function(e,r){return!r||~fr.indexOf(e)?cl(e):function(){return Mn}},lr=function(e,r){var t=r.s,i=r.d2,n=r.d,s=r.a;return Math.max(0,(t="scroll"+i)&&(s=Mr(e,t))?s()-cl(e)()[n]:Jr(e)?(Kt[t]||ve[t])-fl(i):e[t]-e["offset"+i])},_n=function(e,r){for(var t=0;t0){for(i-=s,o=0;o=i)return t[o];return t[o-1]}else for(o=t.length,i+=s;o--;)if(t[o]<=i)return t[o];return t[0]}:function(i,n,s){s===void 0&&(s=.001);var o=r(i);return!n||Math.abs(o-i)t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in $n?$n[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},vn=function(e,r,t,i,n,s,o,l){var u=n.startColor,f=n.endColor,p=n.fontSize,h=n.indent,c=n.fontWeight,g=Se.createElement("div"),d=Jr(t)||Mr(t,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,w=d?ve:t,E=e.indexOf("start")!==-1,A=E?u:f,y="border-color:"+A+";font-size:"+p+";color:"+A+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((m||l)&&d?"fixed;":"absolute;"),(m||l||!d)&&(y+=(i===$e?no:so)+":"+(s+parseFloat(h))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),g._isStart=E,g.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),g.style.cssText=y,g.innerText=r||r===0?e+"-"+r:e,w.children[0]?w.insertBefore(g,w.children[0]):w.appendChild(g),g._offset=g["offset"+i.op.d2],An(g,0,i,E),g},An=function(e,r,t,i){var n={display:"block"},s=t[i?"os2":"p2"],o=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+s+wi]=1,n["border"+o+wi]=0,n[t.p]=r+"px",W.set(e,n)},ee=[],Rs={},sn,Bo=function(){return lt()-$t>34&&(sn||(sn=requestAnimationFrame(yr)))},oi=function(){(!_t||!_t.isPressed||_t.startX>ve.clientWidth)&&(te.cache++,_t?sn||(sn=requestAnimationFrame(yr)):yr(),$t||ti("scrollStart"),$t=lt())},us=function(){al=se.innerWidth,ol=se.innerHeight},Bi=function(){te.cache++,!at&&!sl&&!Se.fullscreenElement&&!Se.webkitFullscreenElement&&(!Os||al!==se.innerWidth||Math.abs(se.innerHeight-ol)>se.innerHeight*.25)&&Wn.restart(!0)},ei={},Ku=[],pl=function a(){return Xe(re,"scrollEnd",a)||Yr(!0)},ti=function(e){return ei[e]&&ei[e].map(function(r){return r()})||Ku},Pt=[],gl=function(e){for(var r=0;rn,o=i._startClamp&&i.start>=n;(s||o)&&i.setPositions(o?n-1:i.start,s?Math.max(o?n:i.start+1,n):i.end,!0)}),No(!1),Ls=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),te.forEach(function(i){yt(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),ml(ro,1),Wn.pause(),Kr++,gt=2,yr(2),ee.forEach(function(i){return yt(i.vars.onRefresh)&&i.vars.onRefresh(i)}),gt=re.isRefreshing=!1,ti("refresh")},zs=0,kn=1,ji,yr=function(e){if(e===2||!gt&&!Un){re.isUpdating=!0,ji&&ji.update(0);var r=ee.length,t=lt(),i=t-as>=50,n=r&&ee[0].scroll();if(kn=zs>n?-1:1,gt||(zs=n),i&&($t&&!Vn&&t-$t>200&&($t=0,ti("scrollEnd")),Li=as,as=t),kn<0){for(pt=r;pt-- >0;)ee[pt]&&ee[pt].update(0,i);kn=1}else for(pt=0;pt20),t-=t-P}if(g&&(l[g]=e||-.001,e<0&&(e=0)),s){var D=e+t,v=s._isStart;m="scroll"+i.d2,An(s,D,i,v&&D>20||!v&&(p?Math.max(ve[m],Kt[m]):s.parentNode[m])<=D+1),p&&(u=mr(o),p&&(s.style[i.op.p]=u[i.op.p]-i.op.m-s._offset+Ye))}return c&&E&&(m=mr(E),c.seek(h),w=mr(E),c._caScrollDist=m[i.p]-w[i.p],e=e/c._caScrollDist*h),c&&c.seek(d),c?e:Math.round(e)},tf=/(webkit|moz|length|cssText|inset)/i,Uo=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,s,o;if(r===ve){e._stOrig=n.cssText,o=Wt(e);for(s in o)!+s&&!tf.test(s)&&o[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=o[s]);n.top=t,n.left=i}else n.cssText=e._stOrig;W.core.getCache(e).uncache=1,r.appendChild(e)}},yl=function(e,r,t){var i=r,n=i;return function(s){var o=Math.round(e());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(s=o,t&&t()),n=i,i=s,s}},bn=function(e,r,t){var i={};i[r.p]="+="+t,W.set(e,i)},Yo=function(e,r){var t=Lr(e,r),i="_scroll"+r.p2,n=function s(o,l,u,f,p){var h=s.tween,c=l.onComplete,g={};u=u||t();var d=yl(t,u,function(){h.kill(),s.tween=0});return p=f&&p||0,f=f||o-u,h&&h.kill(),l[i]=o,l.inherit=!1,l.modifiers=g,g[i]=function(){return d(u+f*h.ratio+p*h.ratio*h.ratio)},l.onUpdate=function(){te.cache++,s.tween&&yr()},l.onComplete=function(){s.tween=0,c&&c.call(h)},h=s.tween=W.to(e,l),h};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},Ve(e,"wheel",t.wheelHandler),re.isTouch&&Ve(e,"touchmove",t.wheelHandler),n},re=function(){function a(r,t){ai||a.register(W)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ds(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Ri){this.update=this.refresh=this.kill=nr;return}t=zo(Mt(t)||Fi(t)||t.nodeType?{trigger:t}:t,mn);var n=t,s=n.onUpdate,o=n.toggleClass,l=n.id,u=n.onToggle,f=n.onRefresh,p=n.scrub,h=n.trigger,c=n.pin,g=n.pinSpacing,d=n.invalidateOnRefresh,m=n.anticipatePin,w=n.onScrubComplete,E=n.onSnapComplete,A=n.once,y=n.snap,C=n.pinReparent,P=n.pinSpacer,x=n.containerAnimation,D=n.fastScrollEnd,v=n.preventOverlaps,T=t.horizontal||t.containerAnimation&&t.horizontal!==!1?vt:$e,O=!p&&p!==0,k=xt(t.scroller||se),N=W.core.getCache(k),I=Jr(k),z=("pinType"in t?t.pinType:Mr(k,"pinType")||I&&"fixed")==="fixed",F=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],R=O&&t.toggleActions.split(" "),S="markers"in t?t.markers:mn.markers,M=I?0:parseFloat(Wt(k)["border"+T.p2+wi])||0,_=this,U=t.onRefreshInit&&function(){return t.onRefreshInit(_)},H=Hu(k,I,T),q=Xu(k,I),K=0,G=0,J=0,ae=Lr(k,T),_e,ye,Qt,Ke,At,le,ce,pe,ze,b,rt,Ht,Xt,ue,Vt,hr,dr,Fe,Zt,we,Qe,bt,Bt,Jt,L,X,ie,me,Ee,be,Ze,V,it,Oe,We,qe,Be,ii,_r;if(_._startClamp=_._endClamp=!1,_._dir=T,m*=45,_.scroller=k,_.scroll=x?x.time.bind(x):ae,Ke=ae(),_.vars=t,i=i||t.animation,"refreshPriority"in t&&(nl=1,t.refreshPriority===-9999&&(ji=_)),N.tweenScroll=N.tweenScroll||{top:Yo(k,$e),left:Yo(k,vt)},_.tweenTo=_e=N.tweenScroll[T.p],_.scrubDuration=function(B){it=Fi(B)&&B,it?V?V.duration(B):V=W.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:it,paused:!0,onComplete:function(){return w&&w(_)}}):(V&&V.progress(1).kill(),V=0)},i&&(i.vars.lazy=!1,i._initted&&!_.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),_.animation=i.pause(),i.scrollTrigger=_,_.scrubDuration(p),be=0,l||(l=i.vars.id)),y&&((!Wr(y)||y.push)&&(y={snapTo:y}),"scrollBehavior"in ve.style&&W.set(I?[ve,Kt]:k,{scrollBehavior:"auto"}),te.forEach(function(B){return yt(B)&&B.target===(I?Se.scrollingElement||Kt:k)&&(B.smooth=!1)}),Qt=yt(y.snapTo)?y.snapTo:y.snapTo==="labels"?Gu(i):y.snapTo==="labelsDirectional"?ju(i):y.directional!==!1?function(B,Z){return ao(y.snapTo)(B,lt()-G<500?0:Z.direction)}:W.utils.snap(y.snapTo),Oe=y.duration||{min:.1,max:2},Oe=Wr(Oe)?qi(Oe.min,Oe.max):qi(Oe,Oe),We=W.delayedCall(y.delay||it/2||.1,function(){var B=ae(),Z=lt()-G<500,Y=_e.tween;if((Z||Math.abs(_.getVelocity())<10)&&!Y&&!Vn&&K!==B){var j=(B-le)/ue,He=i&&!O?i.totalProgress():j,ne=Z?0:(He-Ze)/(lt()-Li)*1e3||0,De=W.utils.clamp(-j,1-j,si(ne/2)*ne/.185),nt=j+(y.inertia===!1?0:De),Pe,xe,he=y,Gt=he.onStart,Ce=he.onInterrupt,kt=he.onComplete;if(Pe=Qt(nt,_),Fi(Pe)||(Pe=nt),xe=Math.round(le+Pe*ue),B<=ce&&B>=le&&xe!==B){if(Y&&!Y._initted&&Y.data<=si(xe-B))return;y.inertia===!1&&(De=Pe-j),_e(xe,{duration:Oe(si(Math.max(si(nt-He),si(Pe-He))*.185/ne/.05||0)),ease:y.ease||"power3",data:si(xe-B),onInterrupt:function(){return We.restart(!0)&&Ce&&Ce(_)},onComplete:function(){_.update(),K=ae(),i&&(V?V.resetTo("totalProgress",Pe,i._tTime/i._tDur):i.progress(Pe)),be=Ze=i&&!O?i.totalProgress():_.progress,E&&E(_),kt&&kt(_)}},B,De*ue,xe-B-De*ue),Gt&&Gt(_,_e.tween)}}else _.isActive&&K!==B&&We.restart(!0)}).pause()),l&&(Rs[l]=_),h=_.trigger=xt(h||c!==!0&&c),_r=h&&h._gsap&&h._gsap.stRevert,_r&&(_r=_r(_)),c=c===!0?h:xt(c),Mt(o)&&(o={targets:h,className:o}),c&&(g===!1||g===Nt||(g=!g&&c.parentNode&&c.parentNode.style&&Wt(c.parentNode).display==="flex"?!1:Ie),_.pin=c,ye=W.core.getCache(c),ye.spacer?Vt=ye.pinState:(P&&(P=xt(P),P&&!P.nodeType&&(P=P.current||P.nativeElement),ye.spacerIsNative=!!P,P&&(ye.spacerState=yn(P))),ye.spacer=Fe=P||Se.createElement("div"),Fe.classList.add("pin-spacer"),l&&Fe.classList.add("pin-spacer-"+l),ye.pinState=Vt=yn(c)),t.force3D!==!1&&W.set(c,{force3D:!0}),_.spacer=Fe=ye.spacer,Ee=Wt(c),Jt=Ee[g+T.os2],we=W.getProperty(c),Qe=W.quickSetter(c,T.a,Ye),fs(c,Fe,Ee),dr=yn(c)),S){Ht=Wr(S)?zo(S,Fo):Fo,b=vn("scroller-start",l,k,T,Ht,0),rt=vn("scroller-end",l,k,T,Ht,0,b),Zt=b["offset"+T.op.d2];var Ei=xt(Mr(k,"content")||k);pe=this.markerStart=vn("start",l,Ei,T,Ht,Zt,0,x),ze=this.markerEnd=vn("end",l,Ei,T,Ht,Zt,0,x),x&&(ii=W.quickSetter([pe,ze],T.a,Ye)),!z&&!(fr.length&&Mr(k,"fixedMarkers")===!0)&&(Vu(I?ve:k),W.set([b,rt],{force3D:!0}),X=W.quickSetter(b,T.a,Ye),me=W.quickSetter(rt,T.a,Ye))}if(x){var Q=x.vars.onUpdate,$=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){_.update(0,0,1),Q&&Q.apply(x,$||[])})}if(_.previous=function(){return ee[ee.indexOf(_)-1]},_.next=function(){return ee[ee.indexOf(_)+1]},_.revert=function(B,Z){if(!Z)return _.kill(!0);var Y=B!==!1||!_.enabled,j=at;Y!==_.isReverted&&(Y&&(qe=Math.max(ae(),_.scroll.rec||0),J=_.progress,Be=i&&i.progress()),pe&&[pe,ze,b,rt].forEach(function(He){return He.style.display=Y?"none":"block"}),Y&&(at=_,_.update(Y)),c&&(!C||!_.isActive)&&(Y?Zu(c,Fe,Vt):fs(c,Fe,Wt(c),L)),Y||_.update(Y),at=j,_.isReverted=Y)},_.refresh=function(B,Z,Y,j){if(!((at||!_.enabled)&&!Z)){if(c&&B&&$t){Ve(a,"scrollEnd",pl);return}!gt&&U&&U(_),at=_,_e.tween&&!Y&&(_e.tween.kill(),_e.tween=0),V&&V.pause(),d&&i&&i.revert({kill:!1}).invalidate(),_.isReverted||_.revert(!0,!0),_._subPinOffset=!1;var He=H(),ne=q(),De=x?x.duration():lr(k,T),nt=ue<=.01,Pe=0,xe=j||0,he=Wr(Y)?Y.end:t.end,Gt=t.endTrigger||h,Ce=Wr(Y)?Y.start:t.start||(t.start===0||!h?0:c?"0 0":"0 100%"),kt=_.pinnedContainer=t.pinnedContainer&&xt(t.pinnedContainer,_),er=h&&Math.max(0,ee.indexOf(_))||0,Je=er,et,st,zr,an,ot,Ue,tr,Gn,uo,Ci,rr,Si,ln;for(S&&Wr(Y)&&(Si=W.getProperty(b,T.p),ln=W.getProperty(rt,T.p));Je--;)Ue=ee[Je],Ue.end||Ue.refresh(0,1)||(at=_),tr=Ue.pin,tr&&(tr===h||tr===c||tr===kt)&&!Ue.isReverted&&(Ci||(Ci=[]),Ci.unshift(Ue),Ue.revert(!0,!0)),Ue!==ee[Je]&&(er--,Je--);for(yt(Ce)&&(Ce=Ce(_)),Ce=Oo(Ce,"start",_),le=Wo(Ce,h,He,T,ae(),pe,b,_,ne,M,z,De,x,_._startClamp&&"_startClamp")||(c?-.001:0),yt(he)&&(he=he(_)),Mt(he)&&!he.indexOf("+=")&&(~he.indexOf(" ")?he=(Mt(Ce)?Ce.split(" ")[0]:"")+he:(Pe=Sn(he.substr(2),He),he=Mt(Ce)?Ce:(x?W.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,le):le)+Pe,Gt=h)),he=Oo(he,"end",_),ce=Math.max(le,Wo(he||(Gt?"100% 0":De),Gt,He,T,ae()+Pe,ze,rt,_,ne,M,z,De,x,_._endClamp&&"_endClamp"))||-.001,Pe=0,Je=er;Je--;)Ue=ee[Je],tr=Ue.pin,tr&&Ue.start-Ue._pinPush<=le&&!x&&Ue.end>0&&(et=Ue.end-(_._startClamp?Math.max(0,Ue.start):Ue.start),(tr===h&&Ue.start-Ue._pinPush=lr(k,T)))et=Wt(c),an=T===$e,zr=ae(),bt=parseFloat(we(T.a))+xe,!De&&ce>1&&(rr=(I?Se.scrollingElement||Kt:k).style,rr={style:rr,value:rr["overflow"+T.a.toUpperCase()]},I&&Wt(ve)["overflow"+T.a.toUpperCase()]!=="scroll"&&(rr.style["overflow"+T.a.toUpperCase()]="scroll")),fs(c,Fe,et),dr=yn(c),st=mr(c,!0),Gn=z&&Lr(k,an?vt:$e)(),g?(L=[g+T.os2,ue+xe+Ye],L.t=Fe,Je=g===Ie?Yn(c,T)+ue+xe:0,Je&&(L.push(T.d,Je+Ye),Fe.style.flexBasis!=="auto"&&(Fe.style.flexBasis=Je+Ye)),mi(L),kt&&ee.forEach(function(Ai){Ai.pin===kt&&Ai.vars.pinSpacing!==!1&&(Ai._subPinOffset=!0)}),z&&ae(qe)):(Je=Yn(c,T),Je&&Fe.style.flexBasis!=="auto"&&(Fe.style.flexBasis=Je+Ye)),z&&(ot={top:st.top+(an?zr-le:Gn)+Ye,left:st.left+(an?Gn:zr-le)+Ye,boxSizing:"border-box",position:"fixed"},ot[Gr]=ot["max"+wi]=Math.ceil(st.width)+Ye,ot[jr]=ot["max"+oo]=Math.ceil(st.height)+Ye,ot[Nt]=ot[Nt+Vi]=ot[Nt+Hi]=ot[Nt+Gi]=ot[Nt+Xi]="0",ot[Ie]=et[Ie],ot[Ie+Vi]=et[Ie+Vi],ot[Ie+Hi]=et[Ie+Hi],ot[Ie+Gi]=et[Ie+Gi],ot[Ie+Xi]=et[Ie+Xi],hr=ef(Vt,ot,C),gt&&ae(0)),i?(uo=i._initted,ss(1),i.render(i.duration(),!0,!0),Bt=we(T.a)-bt+ue+xe,ie=Math.abs(ue-Bt)>1,z&&ie&&hr.splice(hr.length-2,2),i.render(0,!0,!0),uo||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),ss(0)):Bt=ue,rr&&(rr.value?rr.style["overflow"+T.a.toUpperCase()]=rr.value:rr.style.removeProperty("overflow-"+T.a));else if(h&&ae()&&!x)for(st=h.parentNode;st&&st!==ve;)st._pinOffset&&(le-=st._pinOffset,ce-=st._pinOffset),st=st.parentNode;Ci&&Ci.forEach(function(Ai){return Ai.revert(!1,!0)}),_.start=le,_.end=ce,Ke=At=gt?qe:ae(),!x&&!gt&&(Ke0?ee.slice(0,Z).reverse():ee.slice(Z+1);return(Mt(B)?Y.filter(function(j){return j.vars.preventOverlaps===B}):Y).filter(function(j){return _.direction>0?j.end<=le:j.start>=ce})},_.update=function(B,Z,Y){if(!(x&&!Y&&!B)){var j=gt===!0?qe:_.scroll(),He=B?0:(j-le)/ue,ne=He<0?0:He>1?1:He||0,De=_.progress,nt,Pe,xe,he,Gt,Ce,kt,er;if(Z&&(At=Ke,Ke=x?ae():j,y&&(Ze=be,be=i&&!O?i.totalProgress():ne)),m&&c&&!at&&!dn&&$t&&(!ne&&lej+(j-At)/(lt()-Li)*m&&(ne=.9999)),ne!==De&&_.enabled){if(nt=_.isActive=!!ne&&ne<1,Pe=!!De&&De<1,Ce=nt!==Pe,Gt=Ce||!!ne!=!!De,_.direction=ne>De?1:-1,_.progress=ne,Gt&&!at&&(xe=ne&&!De?0:ne===1?1:De===1?2:3,O&&(he=!Ce&&R[xe+1]!=="none"&&R[xe+1]||R[xe],er=i&&(he==="complete"||he==="reset"||he in i))),v&&(Ce||er)&&(er||p||!i)&&(yt(v)?v(_):_.getTrailing(v).forEach(function(zr){return zr.endAnimation()})),O||(V&&!at&&!dn?(V._dp._time-V._start!==V._time&&V.render(V._dp._time-V._start),V.resetTo?V.resetTo("totalProgress",ne,i._tTime/i._tDur):(V.vars.totalProgress=ne,V.invalidate().restart())):i&&i.totalProgress(ne,!!(at&&(G||B)))),c){if(B&&g&&(Fe.style[g+T.os2]=Jt),!z)Qe(zi(bt+Bt*ne));else if(Gt){if(kt=!B&&ne>De&&ce+1>j&&j+1>=lr(k,T),C)if(!B&&(nt||kt)){var Je=mr(c,!0),et=j-le;Uo(c,ve,Je.top+(T===$e?et:0)+Ye,Je.left+(T===$e?0:et)+Ye)}else Uo(c,Fe);mi(nt||kt?hr:dr),ie&&ne<1&&nt||Qe(bt+(ne===1&&!kt?Bt:0))}}y&&!_e.tween&&!at&&!dn&&We.restart(!0),o&&(Ce||A&&ne&&(ne<1||!os))&&nn(o.targets).forEach(function(zr){return zr.classList[nt||A?"add":"remove"](o.className)}),s&&!O&&!B&&s(_),Gt&&!at?(O&&(er&&(he==="complete"?i.pause().totalProgress(1):he==="reset"?i.restart(!0).pause():he==="restart"?i.restart(!0):i[he]()),s&&s(_)),(Ce||!os)&&(u&&Ce&&ls(_,u),F[xe]&&ls(_,F[xe]),A&&(ne===1?_.kill(!1,1):F[xe]=0),Ce||(xe=ne===1?1:3,F[xe]&&ls(_,F[xe]))),D&&!nt&&Math.abs(_.getVelocity())>(Fi(D)?D:2500)&&(Mi(_.callbackAnimation),V?V.progress(1):Mi(i,he==="reverse"?1:!ne,1))):O&&s&&!at&&s(_)}if(me){var st=x?j/x.duration()*(x._caScrollDist||0):j;X(st+(b._isFlipped?1:0)),me(st)}ii&&ii(-j/x.duration()*(x._caScrollDist||0))}},_.enable=function(B,Z){_.enabled||(_.enabled=!0,Ve(k,"resize",Bi),I||Ve(k,"scroll",oi),U&&Ve(a,"refreshInit",U),B!==!1&&(_.progress=J=0,Ke=At=K=ae()),Z!==!1&&_.refresh())},_.getTween=function(B){return B&&_e?_e.tween:V},_.setPositions=function(B,Z,Y,j){if(x){var He=x.scrollTrigger,ne=x.duration(),De=He.end-He.start;B=He.start+De*B/ne,Z=He.start+De*Z/ne}_.refresh(!1,!1,{start:Do(B,Y&&!!_._startClamp),end:Do(Z,Y&&!!_._endClamp)},j),_.update()},_.adjustPinSpacing=function(B){if(L&&B){var Z=L.indexOf(T.d)+1;L[Z]=parseFloat(L[Z])+B+Ye,L[1]=parseFloat(L[1])+B+Ye,mi(L)}},_.disable=function(B,Z){if(_.enabled&&(B!==!1&&_.revert(!0,!0),_.enabled=_.isActive=!1,Z||V&&V.pause(),qe=0,ye&&(ye.uncache=1),U&&Xe(a,"refreshInit",U),We&&(We.pause(),_e.tween&&_e.tween.kill()&&(_e.tween=0)),!I)){for(var Y=ee.length;Y--;)if(ee[Y].scroller===k&&ee[Y]!==_)return;Xe(k,"resize",Bi),I||Xe(k,"scroll",oi)}},_.kill=function(B,Z){_.disable(B,Z),V&&!Z&&V.kill(),l&&delete Rs[l];var Y=ee.indexOf(_);Y>=0&&ee.splice(Y,1),Y===pt&&kn>0&&pt--,Y=0,ee.forEach(function(j){return j.scroller===_.scroller&&(Y=1)}),Y||gt||(_.scroll.rec=0),i&&(i.scrollTrigger=null,B&&i.revert({kill:!1}),Z||i.kill()),pe&&[pe,ze,b,rt].forEach(function(j){return j.parentNode&&j.parentNode.removeChild(j)}),ji===_&&(ji=0),c&&(ye&&(ye.uncache=1),Y=0,ee.forEach(function(j){return j.pin===c&&Y++}),Y||(ye.spacer=0)),t.onKill&&t.onKill(_)},ee.push(_),_.enable(!1,!1),_r&&_r(_),i&&i.add&&!ue){var fe=_.update;_.update=function(){_.update=fe,le||ce||_.refresh()},W.delayedCall(.01,_.update),ue=.01,le=ce=0}else _.refresh();c&&Qu()},a.register=function(t){return ai||(W=t||ul(),ll()&&window.document&&a.enable(),ai=Ri),ai},a.defaults=function(t){if(t)for(var i in t)mn[i]=t[i];return mn},a.disable=function(t,i){Ri=0,ee.forEach(function(s){return s[i?"kill":"disable"](t)}),Xe(se,"wheel",oi),Xe(Se,"scroll",oi),clearInterval(hn),Xe(Se,"touchcancel",nr),Xe(ve,"touchstart",nr),pn(Xe,Se,"pointerdown,touchstart,mousedown",Lo),pn(Xe,Se,"pointerup,touchend,mouseup",Ro),Wn.kill(),_n(Xe);for(var n=0;n0&&s.left+o0&&s.top+o=0&&Pt.splice(r,5),Pt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),W.core.getCache(e),Ds())}}):Pt};re.revert=function(a,e){return lo(!a,e)};re.create=function(a,e){return new re(a,e)};re.refresh=function(a){return a?Bi():(ai||re.register())&&Yr(!0)};re.update=function(a){return++te.cache&&yr(a===!0?2:0)};re.clearScrollMemory=ml;re.maxScroll=function(a,e){return lr(a,e?vt:$e)};re.getScrollFunc=function(a,e){return Lr(xt(a),e?vt:$e)};re.getById=function(a){return Rs[a]};re.getAll=function(){return ee.filter(function(a){return a.vars.id!=="ScrollSmoother"})};re.isScrolling=function(){return!!$t};re.snapDirectional=ao;re.addEventListener=function(a,e){var r=ei[a]||(ei[a]=[]);~r.indexOf(e)||r.push(e)};re.removeEventListener=function(a,e){var r=ei[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};re.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,s=function(u,f){var p=[],h=[],c=W.delayedCall(i,function(){f(p,h),p=[],h=[]}).pause();return function(g){p.length||c.restart(!0),p.push(g.trigger),h.push(g),n<=p.length&&c.progress(1)}},o;for(o in e)t[o]=o.substr(0,2)==="on"&&yt(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return yt(n)&&(n=n(),Ve(re,"refresh",function(){return n=e.batchMax()})),nn(a).forEach(function(l){var u={};for(o in t)u[o]=t[o];u.trigger=l,r.push(re.create(u))}),r};var $o=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},cs=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(Re.isTouch?" pinch-zoom":""):"none",e===Kt&&a(ve,r)},xn={auto:1,scroll:1},rf=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,s=n._gsap||W.core.getCache(n),o=lt(),l;if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n!==ve&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(xn[(l=Wt(n)).overflowY]||xn[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!Jr(n)&&(xn[(l=Wt(n)).overflowY]||xn[l.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},bl=function(e,r,t,i){return Re.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&rf,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&Ve(Se,Re.eventTypes[0],Ho,!1,!0)},onDisable:function(){return Xe(Se,Re.eventTypes[0],Ho,!0)}})},nf=/(input|label|select|textarea)/i,qo,Ho=function(e){var r=nf.test(e.target.tagName);(r||qo)&&(e._gsapAllow=!0,qo=r)},sf=function(e){Wr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,s=r.onRelease,o,l,u=xt(e.target)||Kt,f=W.core.globals().ScrollSmoother,p=f&&f.get(),h=Tr&&(e.content&&xt(e.content)||p&&e.content!==!1&&!p.smooth()&&p.content()),c=Lr(u,$e),g=Lr(u,vt),d=1,m=(Re.isTouch&&se.visualViewport?se.visualViewport.scale*se.visualViewport.width:se.outerWidth)/se.innerWidth,w=0,E=yt(i)?function(){return i(o)}:function(){return i||2.8},A,y,C=bl(u,e.type,!0,n),P=function(){return y=!1},x=nr,D=nr,v=function(){l=lr(u,$e),D=qi(Tr?1:0,l),t&&(x=qi(0,lr(u,vt))),A=Kr},T=function(){h._gsap.y=zi(parseFloat(h._gsap.y)+c.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},O=function(){if(y){requestAnimationFrame(P);var S=zi(o.deltaY/2),M=D(c.v-S);if(h&&M!==c.v+c.offset){c.offset=M-c.v;var _=zi((parseFloat(h&&h._gsap.y)||0)-c.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+_+", 0, 1)",h._gsap.y=_+"px",c.cacheID=te.cache,yr()}return!0}c.offset&&T(),y=!0},k,N,I,z,F=function(){v(),k.isActive()&&k.vars.scrollY>l&&(c()>l?k.progress(1)&&c(l):k.resetTo("scrollY",l))};return h&&W.set(h,{y:"+=0"}),e.ignoreCheck=function(R){return Tr&&R.type==="touchmove"&&O()||d>1.05&&R.type!=="touchstart"||o.isGesturing||R.touches&&R.touches.length>1},e.onPress=function(){y=!1;var R=d;d=zi((se.visualViewport&&se.visualViewport.scale||1)/m),k.pause(),R!==d&&cs(u,d>1.01?!0:t?!1:"x"),N=g(),I=c(),v(),A=Kr},e.onRelease=e.onGestureStart=function(R,S){if(c.offset&&T(),!S)z.restart(!0);else{te.cache++;var M=E(),_,U;t&&(_=g(),U=_+M*.05*-R.velocityX/.227,M*=$o(g,_,U,lr(u,vt)),k.vars.scrollX=x(U)),_=c(),U=_+M*.05*-R.velocityY/.227,M*=$o(c,_,U,lr(u,$e)),k.vars.scrollY=D(U),k.invalidate().duration(M).play(.01),(Tr&&k.vars.scrollY>=l||_>=l-1)&&W.to({},{onUpdate:F,duration:M})}s&&s(R)},e.onWheel=function(){k._ts&&k.pause(),lt()-w>1e3&&(A=0,w=lt())},e.onChange=function(R,S,M,_,U){if(Kr!==A&&v(),S&&t&&g(x(_[2]===S?N+(R.startX-R.x):g()+S-_[1])),M){c.offset&&T();var H=U[2]===M,q=H?I+R.startY-R.y:c()+M-U[1],K=D(q);H&&q!==K&&(I+=K-q),c(K)}(M||S)&&yr()},e.onEnable=function(){cs(u,t?!1:"x"),re.addEventListener("refresh",F),Ve(se,"resize",F),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=g.smooth=!1),C.enable()},e.onDisable=function(){cs(u,!0),Xe(se,"resize",F),re.removeEventListener("refresh",F),C.kill()},e.lockAxis=e.lockAxis!==!1,o=new Re(e),o.iOS=Tr,Tr&&!c()&&c(1),Tr&&W.ticker.add(nr),z=o._dc,k=W.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:yl(c,c(),function(){return k.pause()})},onUpdate:yr,onComplete:z.vars.onComplete}),o};re.sort=function(a){return ee.sort(a||function(e,r){return(e.vars.refreshPriority||0)*-1e6+e.start-(r.start+(r.vars.refreshPriority||0)*-1e6)})};re.observe=function(a){return new Re(a)};re.normalizeScroll=function(a){if(typeof a>"u")return _t;if(a===!0&&_t)return _t.enable();if(a===!1){_t&&_t.kill(),_t=a;return}var e=a instanceof Re?a:sf(a);return _t&&_t.target===e.target&&_t.kill(),Jr(e.target)&&(_t=e),e};re.core={_getVelocityProp:Ps,_inputObserver:bl,_scrollers:te,_proxies:fr,bridge:{ss:function(){$t||ti("scrollStart"),$t=lt()},ref:function(){return at}}};ul()&&W.registerPlugin(re);Vr.registerPlugin(re);class of{constructor(){this.init()}init(){this.parallaxEls=document.querySelectorAll(".parallax"),this.parallaxEls?.length!==0&&this.parallaxEls.forEach(e=>{Vr.timeline({defaults:{ease:"none"},scrollTrigger:{trigger:e.parentElement,start:e.dataset.start||"top bottom",end:e.dataset.end||"bottom top",pin:!1,invalidateOnRefresh:!0,markers:!1,scrub:!0}}).to(e,{y:e.dataset.y||"0%",x:e.dataset.x||"0%"})})}}Vr.registerPlugin(re);class af{constructor(e){this.$el=e,this.heroEl=this.$el,this.heroElHeight=this.$el.offsetHeight,this.siteHeaderEl=document.querySelector("#site-header"),this.siteHeaderHeight=this.siteHeaderEl?.offsetHeight,window.innerWidth>=768?this.posY={textbox:this.heroElHeight*.18,image:this.heroElHeight*.14,colorbox:this.heroElHeight*.1}:this.posY={textbox:0,image:0,colorbox:0},this.imageEl=this.$el.querySelector(".js-parallax-image"),this.initImageParallax(this.imageEl),this.textboxEl=this.$el.querySelector(".js-parallax-textbox"),this.initTextboxParallax(this.textboxEl),this.colorboxEl=this.$el.querySelectorAll(".js-parallax-colorbox"),this.initColorboxParallax(this.colorboxEl)}initTextboxParallax(e){Vr.timeline({scrollTrigger:{trigger:this.heroEl,start:`top ${this.siteHeaderHeight}`,end:"bottom top",scrub:!0}}).to(e,{y:this.posY.textbox,x:0})}initImageParallax(e){Vr.timeline({scrollTrigger:{trigger:this.heroEl,start:`top ${this.siteHeaderHeight}`,end:"bottom top",scrub:!0}}).to(e,{y:this.posY.image,x:0})}initColorboxParallax(e){Vr.timeline({scrollTrigger:{trigger:this.heroEl,start:`top ${this.siteHeaderHeight}`,end:"bottom top",scrub:!0}}).to(e,{y:this.posY.colorbox,x:0})}}function lf(a,e){let r=Date.now();return function(){r+e-Date.now()<0&&(a(),r=Date.now())}}function xl(a,e,r){let t;return function(){let i=arguments,n=()=>{t=null,a.apply(this,i)};clearTimeout(t),t=setTimeout(n,e)}}class uf{constructor(e){this.el=e,this.body=document.body,this.lastScrollTop=0,this.onScroll=this.onScroll.bind(this),this.handleScroll=this.handleScroll.bind(this),this.throttledScroll=lf(this.handleScroll,90),this.debouncedScroll=xl(this.handleScroll,150),this.body.querySelector(".js-page-hero")&&this.body.classList.add("has-page-hero"),document.documentElement.scrollTop>0?document.body.classList.add("scrolled"):document.body.classList.remove("scrolled"),this.bindEvents()}onScroll(e){this.throttledScroll(e),this.debouncedScroll(e)}handleScroll(){const e=document.documentElement.scrollTop;e>0?this.body.classList.add("scrolled"):this.body.classList.remove("scrolled"),e>this.lastScrollTop?(this.body.classList.add("scrolled-down"),this.body.classList.remove("scrolled-up")):e{window.innerWidth>=this.desktopBreakpoint&&this.close()}),this.mobileMenuToggles.forEach(e=>{e.addEventListener("click",r=>{this.el.getAttribute("aria-hidden")==="false"?this.close():this.open(r.currentTarget)})}),this.el.addEventListener("transitionend",e=>{e.propertyName==="opacity"&&this.el.getAttribute("aria-hidden")==="true"&&(this.el.classList.add("hidden"),this.closeAllSubmenus())}),this.submenuTriggers.forEach(e=>{e.addEventListener("click",r=>{r.preventDefault(),e.getAttribute("aria-expanded")==="true"?this.closeSubmenu(e):this.openSubmenu(e)})})}open(e){document.body.classList.add("overflow-hidden","has-mobile-menu-open"),this.el.classList.remove("hidden"),setTimeout(()=>{this.el.setAttribute("aria-hidden","false"),e.setAttribute("aria-expanded","true")},0)}close(){this.mobileMenuToggles.forEach(e=>e.setAttribute("aria-expanded","false")),this.mobileMenuToggles[0].focus(),document.body.classList.remove("overflow-hidden","has-mobile-menu-open"),this.el.setAttribute("aria-hidden","true")}openSubmenu(e){e.setAttribute("aria-expanded","true"),e.closest(".has-submenu")?.classList.add("has-expanded");const r=e.getAttribute("aria-controls");this.submenuTriggers.forEach(i=>{i.getAttribute("aria-controls")===r&&i.setAttribute("aria-expanded","true")}),this.el.querySelector(`#${r}`).setAttribute("aria-hidden","false")}closeSubmenu(e){e.setAttribute("aria-expanded","false"),e.closest(".has-submenu")?.classList.remove("has-expanded");const r=e.getAttribute("aria-controls");this.submenuTriggers.forEach(i=>{i.getAttribute("aria-controls")===r&&i.setAttribute("aria-expanded","false")}),this.el.querySelector(`#${r}`).setAttribute("aria-hidden","true")}closeAllSubmenus(){this.submenuTriggers.forEach(e=>{this.closeSubmenu(e)})}}function Tl(){const a=document.createElement("div");a.style.visibility="hidden",a.style.overflow="scroll",a.style.msOverflowStyle="scrollbar",document.body.appendChild(a);const e=document.createElement("div");a.appendChild(e);const r=a.offsetWidth-e.offsetWidth;return a.parentNode.removeChild(a),r}function cf(a,e){if(!(a.key==="Tab"||a.keyCode===9))return;const t=document.getElementById(e),i='button, [href], input, select, textarea, iframe, [tabindex]:not([tabindex="-1"])',n=t.querySelectorAll(i)[0],s=t.querySelectorAll(i),o=s[s.length-1];a.shiftKey?document.activeElement===n&&(o.focus(),a.preventDefault()):document.activeElement===o&&(n.focus(),a.preventDefault())}class hf{constructor(e){this.modalEl=e,this.modalOverlayEl=this.modalEl.querySelector(".js-modal-overlay"),this.body=document.body,this.scrollbarWidth=Tl(),this.form=this.modalEl.querySelector("form"),this.input=this.modalEl.querySelector("input"),this.searchOverlayToggles=document.querySelectorAll(".js-toggle-site-search-overlay"),this.initTrapFocus=r=>cf(r,this.modalEl.id),this.bindEvents()}bindEvents(){this.modalOverlayEl.addEventListener("click",t=>{t.target===this.modalOverlayEl&&(sr.emit("site-search-overlay:close"),this.closeModal())}),this.modalEl.querySelector(".js-close-site-search-overlay").addEventListener("click",()=>{sr.emit("site-search-overlay:close"),this.closeModal()});let r=document.querySelectorAll(".js-toggle-site-search-overlay");r&&r.forEach(t=>{t.addEventListener("click",()=>{sr.emit("site-search-overlay:open")})}),sr.addEventListener("site-search-overlay:close",()=>{this.closeModal()}),sr.addEventListener("site-search-overlay:open",()=>{this.openModal()}),this.form?.addEventListener("submit",()=>{}),this.modalEl.addEventListener("transitionend",t=>{t.propertyName==="opacity"&&(this.modalEl.getAttribute("aria-hidden")==="true"?(this.input.value="",this.preventBodyScrolling(!1)):this.input?.focus())})}openModal(){console.log("openModal"),this.modalEl.setAttribute("aria-hidden","false"),this.modalEl.removeAttribute("inert"),document.addEventListener("keydown",this.closeOnEscape.bind(this),{once:!0}),document.addEventListener("keydown",this.initTrapFocus),this.preventBodyScrolling(!0)}closeModal(){console.log("closeModal"),this.modalEl.setAttribute("aria-hidden","true"),this.modalEl.setAttribute("inert",""),document.removeEventListener("keydown",this.closeOnEscape.bind(this),!0),document.removeEventListener("keydown",this.initTrapFocus)}preventBodyScrolling(e){e?(this.body.classList.add("overflow-hidden"),this.body.style.paddingRight=`${this.scrollbarWidth}px`):(this.body.classList.remove("overflow-hidden"),this.body.style.paddingRight="")}closeOnEscape(e){(e.key==="Escape"||e.keyCode===27)&&this.closeModal()}}class df{constructor(e){this.modalEl=e,this.modalOverlayEl=this.modalEl.querySelector(".js-modal-overlay"),this.body=document.body,this.scrollbarWidth=Tl(),this.bindEvents()}bindEvents(){this.modalOverlayEl.addEventListener("click",t=>{t.target===this.modalOverlayEl&&(sr.emit("subscribe-modal:close"),this.closeModal())}),this.modalEl.querySelector(".js-close-subscribe-modal").addEventListener("click",()=>{sr.emit("subscribe-modal:close"),this.closeModal()});let r=document.querySelectorAll(".js-trigger-subscribe-modal");r&&r.forEach(t=>{t.addEventListener("click",()=>{sr.emit("subscribe-modal:open")})}),sr.addEventListener("subscribe-modal:close",()=>{this.closeModal()}),sr.addEventListener("subscribe-modal:open",()=>{this.openModal()})}openModal(){console.log("openModal"),this.modalEl.setAttribute("aria-hidden","false"),document.addEventListener("keydown",this.closeOnEscape.bind(this),{once:!0}),this.body.classList.add("overflow-hidden"),this.body.style.paddingRight=`${this.scrollbarWidth}px`}closeModal(){console.log("closeModal"),this.modalEl.setAttribute("aria-hidden","true"),document.removeEventListener("keydown",this.closeOnEscape.bind(this),!0),this.body.classList.remove("overflow-hidden"),this.body.style.paddingRight=""}closeOnEscape(e){(e.key==="Escape"||e.keyCode===27)&&this.closeModal()}}class _f{constructor(e){this.$el=e,this.crumbsWrapperEl=this.$el.querySelector(".js-crumbs-wrapper"),this.crumbsListEl=this.$el.querySelector(".js-crumbs-list"),this.truncateIndicatorEl=this.$el.querySelector(".js-truncate-indicator"),this.hidableCrumbs=(()=>{let r=Array.from(this.$el.querySelectorAll(".js-crumb"));return r.pop(),r})(),this.allowCrumbsListWidthMeasurement=!0,this.bindEvents()}bindEvents(){this.checkOverflow(),window.addEventListener("resize",xl(this.checkOverflow.bind(this),69)),this.showBreadcrumbs()}showBreadcrumbs(){this.crumbsWrapperEl.classList.add("overflow-auto"),this.$el.classList.remove("invisible")}checkOverflow(){this.allowCrumbsListWidthMeasurement&&(this.crumbsListWidth=this.crumbsListEl.getBoundingClientRect().width),this.crumbsWrapperEl.getBoundingClientRect().width<=this.crumbsListWidth?(this.allowCrumbsListWidthMeasurement=!1,this.collapseBreadcrumbs()):(this.allowCrumbsListWidthMeasurement=!0,this.expandBreadcrumbs())}expandBreadcrumbs(){this.truncateIndicatorEl.classList.remove("inline-flex"),this.truncateIndicatorEl.classList.add("hidden"),this.hidableCrumbs.forEach(e=>{e.classList.remove("hidden")})}collapseBreadcrumbs(){this.truncateIndicatorEl.classList.remove("hidden"),this.truncateIndicatorEl.classList.add("inline-flex"),this.hidableCrumbs.forEach(e=>{e.classList.add("hidden")})}}new of;const Bs=document.querySelectorAll(".cc-store-page-hero, .cc-page-hero");console.log("storePageHeroEls",Bs);Bs&&Bs.forEach(a=>{new af(a)});const Xo=document.querySelector("#site-header");Xo&&new uf(Xo);const Vo=document.querySelector("#site-mobile-menu");Vo&&new ff(Vo);const Go=document.querySelector("#site-search-overlay");Go&&new hf(Go);const jo=document.querySelector("#subscribe-modal");jo&&new df(jo);const Ko=document.querySelectorAll(".cc-breadcrumbs");Ko&&Ko.forEach(a=>{new _f(a)});